Quick correction on the adl-submit script so it can handle 0 or 1 parameters

This commit is contained in:
echarp 2015-09-12 17:08:16 +02:00
parent 981ebfe843
commit a15eb8c46b
1 changed files with 1 additions and 1 deletions

View File

@ -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:])