Print error on missing command.
This commit is contained in:
parent
16361ba5f4
commit
919ba2b4a5
5
patool
5
patool
|
@ -188,8 +188,11 @@ def main():
|
|||
try:
|
||||
argparser = create_argparser()
|
||||
args = argparser.parse_args()
|
||||
if args.command is None:
|
||||
# Python 3.3.1 under linux allows an empty command somehow
|
||||
argparser.error("too few arguments")
|
||||
# run subcommand function
|
||||
return globals()["run_%s" % args.command](args)
|
||||
res = globals()["run_%s" % args.command](args)
|
||||
except KeyboardInterrupt:
|
||||
log_error("aborted")
|
||||
res = 1
|
||||
|
|
Loading…
Reference in New Issue