fix traceback on calling --help draft
authoralain leufroy <alain@leufroy.fr>
Sun, 31 Mar 2013 00:16:42 +0100
changeset 62 b631988c2e9c
parent 61 d7ad55206a47
child 63 9d9195c437cd
fix traceback on calling --help ... because the parser does not exit on querying help.
h5fslib/__init__.py
--- a/h5fslib/__init__.py	Wed Apr 03 11:09:48 2013 +0200
+++ b/h5fslib/__init__.py	Sun Mar 31 00:16:42 2013 +0100
@@ -41,6 +41,8 @@
                   fetch_mp=True)
     server.parse(errex=1)
     _opts, ags = server.cmdline
+    if not ags:
+        return
     h5file = h5py.File(ags.pop(), 'r')
     try:
         server.h5file = h5file