crypto-ezmlm: fixed "--help" switch
This commit is contained in:
parent
8fd5dadf47
commit
1fd5f5fca1
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ if __name__ == '__main__':
|
||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
internal_error("More than one parameter (the mailinglist directory) given!")
|
internal_error("More than one parameter (the mailinglist directory) given!")
|
||||||
## print some help if it was requested
|
## print some help if it was requested
|
||||||
if sys.argv[0] == '--help':
|
if sys.argv[1] == '--help':
|
||||||
sys.stderr.write("Syntax: %s [MAILINGLIST_DIRECTORY]\n\n" % \
|
sys.stderr.write("Syntax: %s [MAILINGLIST_DIRECTORY]\n\n" % \
|
||||||
os.path.basename(sys.argv[0]))
|
os.path.basename(sys.argv[0]))
|
||||||
sys.stderr.write("If you omit the MAILINGLIST_DIRECTORY, " \
|
sys.stderr.write("If you omit the MAILINGLIST_DIRECTORY, " \
|
||||||
|
|
Loading…
Reference in a new issue