Quick correction on the adl-submit script so it can handle 0 or 1 parameters
This commit is contained in:
parent
981ebfe843
commit
a15eb8c46b
@ -370,7 +370,7 @@ def SubmitEvent(event, testOutputFile):
|
||||
print u"Évènement soumis avec succès. Il sera prochainement validé par un modérateur."
|
||||
|
||||
|
||||
if (len(sys.argv) == 1) and sys.argv[1] == "--help":
|
||||
if (len(sys.argv) <= 1) or sys.argv[1] == "--help":
|
||||
Usage()
|
||||
|
||||
(event, testOutputFile) = ParseOptions(sys.argv[1:])
|
||||
|
Loading…
Reference in New Issue
Block a user