chiark / gitweb /
fdroid.py: list commands when not giving a right command (I used ./fdroid -h and...
authorTias Guns <tias@ulyssis.org>
Sun, 11 Mar 2012 21:09:32 +0000 (21:09 +0000)
committerTias Guns <tias.guns@cs.kuleuven.be>
Sun, 11 Mar 2012 23:17:45 +0000 (23:17 +0000)
fdroid

diff --git a/fdroid b/fdroid
index 22bcffac1d9b66b2541f180e14373e38094cb7bd..20922475ba215ea2ab356f7ecc4e4f3cb77714d6 100755 (executable)
--- a/fdroid
+++ b/fdroid
@@ -41,7 +41,11 @@ def main():
 
     command = sys.argv[1]
     if not command in commands:
-        print "Command '" + command + "' not recognised"
+        print "Command '" + command + "' not recognised."
+        print ""
+        print "Valid commands are:"
+        for command in commands:
+            print "  " + command
         sys.exit(1)
 
     # Trick optparse into displaying the right usage when --help is used.