chiark / gitweb /
-h and --help are not invalid commands
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 6 Jun 2013 13:27:53 +0000 (15:27 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 6 Jun 2013 13:27:53 +0000 (15:27 +0200)
fdroid

diff --git a/fdroid b/fdroid
index a14ea17b6504fc36f395f9ed5a938ad6f4ad3bfd..d29841d7921dc3ef13548cf56e8e2c424c313824 100755 (executable)
--- 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)