Give additionnal information for command line arguments
This commit is contained in:
parent
89f9a545cb
commit
cd282853e0
@ -94,8 +94,11 @@ def delUserFromList(userEmail, listName):
|
|||||||
|
|
||||||
#--------------------MAIN--------------------
|
#--------------------MAIN--------------------
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
print "Usage ... Nom email [ancien_email]"
|
print "Usage %s nom email [ancien_email]"%sys.argv[0]
|
||||||
s4s.exit(1)
|
print "nom : nom de la mailing list de l'user sans prefix (ex: celine et pas %s-celine). Sera creee si elle n'exite pas"%MAILING_PREFIX
|
||||||
|
print "email : email a ajouter dans toutes les mailing lists sauf dans %s-nom"%MAILING_PREFIX
|
||||||
|
print "ancien_email : email a supprimer de toutes les mailing lists"
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
mailingName = MAILING_PREFIX+"-"+sys.argv[1]
|
mailingName = MAILING_PREFIX+"-"+sys.argv[1]
|
||||||
existingLists = getMailingLists(MAILING_PREFIX)
|
existingLists = getMailingLists(MAILING_PREFIX)
|
||||||
|
Loading…
Reference in New Issue
Block a user