Print help by default
This commit is contained in:
parent
19c0eead5c
commit
44a846a646
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ class ungleichCLI(object):
|
||||||
|
|
||||||
def commandline(self):
|
def commandline(self):
|
||||||
args = self.parser['main'].parse_args()
|
args = self.parser['main'].parse_args()
|
||||||
args.func(args)
|
if 'func' in args:
|
||||||
|
args.func(args)
|
||||||
|
else:
|
||||||
|
self.parser['main'].print_help()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue