work around python 3.3 argument parser bug
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
5f0155b968
commit
138e1075f9
1 changed files with 3 additions and 0 deletions
3
bin/ctt
3
bin/ctt
|
@ -96,6 +96,9 @@ def parse_argv(argv, version):
|
||||||
except ctt.Error as e:
|
except ctt.Error as e:
|
||||||
log.error(e)
|
log.error(e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except AttributeError:
|
||||||
|
parser['main'].print_help()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Ensure our /lib/ is included into PYTHON_PATH
|
# Ensure our /lib/ is included into PYTHON_PATH
|
||||||
|
|
Loading…
Reference in a new issue