Convert bool options to bool flags
This commit is contained in:
parent
6bf57bf761
commit
e319368805
4
main.py
4
main.py
|
@ -140,8 +140,8 @@ class PodKeeper:
|
|||
|
||||
@click.command()
|
||||
@click.option("--network", default="brodge", help="Network for the created pod")
|
||||
@click.option("--replace", default=True, help="Replace previously running pod with the same name")
|
||||
@click.option("--remove", default=True, help="Remove pod after stopping")
|
||||
@click.option("--replace/--no-replace", default=True, help="Controls replacement of previously running pod with the same name")
|
||||
@click.option("--remove/--keep", default=True, help="Controls removal of pod after stopping")
|
||||
@click.argument("identifier")
|
||||
def main(network, replace, remove, identifier):
|
||||
keeper = PodKeeper(network, replace, remove, identifier)
|
||||
|
|
Loading…
Reference in a new issue