show the un-mangled command name in the error message

This commit is contained in:
Mike Bonnet 2007-11-19 16:51:50 -05:00
parent a2bc6d7a76
commit ab11c7c5e2

View file

@ -129,7 +129,7 @@ def get_options():
cmd = 'handle_' + cmd
else:
list_commands()
parser.error('Unknown command: %s' % cmd)
parser.error('Unknown command: %s' % args[0])
assert False
# load local config
defaults = {