Print help by default

This commit is contained in:
Nico Schottelius 2019-05-12 11:29:58 +02:00
parent 19c0eead5c
commit 44a846a646

View file

@ -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()
if 'func' in args:
args.func(args) args.func(args)
else:
self.parser['main'].print_help()
if __name__ == '__main__': if __name__ == '__main__':