set correct args option
This commit is contained in:
parent
84834a228f
commit
524aef91f9
@ -46,7 +46,7 @@ def argparser():
|
|||||||
script = sys.argv[3]
|
script = sys.argv[3]
|
||||||
return group_id, script, None
|
return group_id, script, None
|
||||||
|
|
||||||
if sys.argv[4] in ['-p', '--params']:
|
if sys.argv[4] in ['-a', '--args']:
|
||||||
varc = sys.argv[5]
|
varc = sys.argv[5]
|
||||||
return group_id, script, params
|
return group_id, script, params
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ def main():
|
|||||||
params = flushed_input("Paramètres : ")
|
params = flushed_input("Paramètres : ")
|
||||||
|
|
||||||
|
|
||||||
|
if params is None: params = ""
|
||||||
ret = proxy.uucp.exec_script(liste_serveurs, script, params)
|
ret = proxy.uucp.exec_script(liste_serveurs, script, params)
|
||||||
|
|
||||||
# on affiche les erreurs si nécessaire
|
# on affiche les erreurs si nécessaire
|
||||||
|
Loading…
Reference in New Issue
Block a user