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