Commit a5249a5f authored by Darko Poljak's avatar Darko Poljak

Fix error when called without args.

parent 525e8fbb
......@@ -92,8 +92,10 @@ def parse_argv(argv, version):
log.debug(args)
try:
if hasattr(args, "func"):
args.func(args)
else:
parser['main'].print_help()
except ctt.Error as e:
log.error(e)
sys.exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment