mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-26 13:50:33 -04:00
fixed argument order
This commit is contained in:
parent
f228490138
commit
7c9b705304
@ -26,8 +26,8 @@ if len(sys.argv) < 3:
|
||||
usage()
|
||||
exit(0)
|
||||
|
||||
component = sys.argv[1]
|
||||
mode = MODES.get(sys.argv[2].lower())
|
||||
component = sys.argv[-1]
|
||||
mode = MODES.get(sys.argv[-2].lower())
|
||||
|
||||
if not mode:
|
||||
usage()
|
||||
|
Loading…
x
Reference in New Issue
Block a user