From: Daniel Martí Date: Thu, 6 Jun 2013 13:27:53 +0000 (+0200) Subject: -h and --help are not invalid commands X-Git-Tag: 0.1~544 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=90c953871f9e527977f6aed8ef23202dbaede3a7;p=fdroidserver.git -h and --help are not invalid commands --- diff --git a/fdroid b/fdroid index a14ea17b..d29841d7 100755 --- a/fdroid +++ b/fdroid @@ -44,7 +44,8 @@ def main(): command = sys.argv[1] 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() sys.exit(1)