cli - fixes cli without params

Cli was crashing if no param was provided
This commit is contained in:
Sergi Delgado Segura
2020-05-08 17:17:11 +02:00
parent f2162b6add
commit e91f65048d

View File

@@ -484,7 +484,7 @@ if __name__ == "__main__":
if opt in ["-h", "--help"]:
sys.exit(show_usage())
command = args.pop(0)
command = args.pop(0) if args else None
if command in commands:
main(command, args, command_line_conf)
elif not command: