mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
fdroid.py: list commands when not giving a right command (I used ./fdroid -h and expected actual info, even if -h is not valid
This commit is contained in:
parent
d2fa268910
commit
ec396c3cc5
1 changed files with 5 additions and 1 deletions
6
fdroid
6
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue