Convert bool options to bool flags

This commit is contained in:
Ben 2020-12-30 20:41:52 +01:00
parent 6bf57bf761
commit e319368805
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -140,8 +140,8 @@ class PodKeeper:
@click.command() @click.command()
@click.option("--network", default="brodge", help="Network for the created pod") @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("--replace/--no-replace", default=True, help="Controls replacement of previously running pod with the same name")
@click.option("--remove", default=True, help="Remove pod after stopping") @click.option("--remove/--keep", default=True, help="Controls removal of pod after stopping")
@click.argument("identifier") @click.argument("identifier")
def main(network, replace, remove, identifier): def main(network, replace, remove, identifier):
keeper = PodKeeper(network, replace, remove, identifier) keeper = PodKeeper(network, replace, remove, identifier)