-h and --help are not invalid commands

This commit is contained in:
Daniel Martí 2013-06-06 15:27:53 +02:00
parent ceb4b20ede
commit 90c953871f

3
fdroid
View file

@ -44,7 +44,8 @@ def main():
command = sys.argv[1] command = sys.argv[1]
if not command in commands: if not command in commands:
print "Command '" + command + "' not recognised.\n" if command not in ('-h', '--help'):
print "Command '" + command + "' not recognised.\n"
print_help() print_help()
sys.exit(1) sys.exit(1)