mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
-h and --help are not invalid commands
This commit is contained in:
parent
ceb4b20ede
commit
90c953871f
1 changed files with 2 additions and 1 deletions
3
fdroid
3
fdroid
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue