force option
This commit is contained in:
parent
f1ea7f354d
commit
b03a49d5d3
1 changed files with 4 additions and 4 deletions
6
main.py
6
main.py
|
@ -636,11 +636,11 @@ if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true")
|
parser.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true")
|
||||||
parser.add_argument("-e", "--export", help="export le contenu du parefeu", action="store_true")
|
parser.add_argument("-e", "--export", help="export le contenu du parefeu", action="store_true")
|
||||||
parser.add_argument("action", help="Mode reconnus : start, stop ou restart", default="restart")
|
parser.add_argument("action", help="Mode reconnus : start, stop ou restart", default="restart", nargs="?")
|
||||||
|
parser.add_argument("--force", help="Force l'action", action="store_true")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
for arg in sys.argv:
|
if args.force:
|
||||||
if arg=="--force":
|
|
||||||
run(args)
|
run(args)
|
||||||
|
|
||||||
for service in api_client.list("services/regen/"):
|
for service in api_client.list("services/regen/"):
|
||||||
|
|
Loading…
Reference in a new issue