work around python 3.3 argument parser bug

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-06-08 22:53:09 +02:00
parent 5f0155b968
commit 138e1075f9
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ def parse_argv(argv, version):
except ctt.Error as e:
log.error(e)
sys.exit(1)
except AttributeError:
parser['main'].print_help()
if __name__ == "__main__":
# Ensure our /lib/ is included into PYTHON_PATH