From e8663b3e9cad4be97189bcff42c45d45f4f3835a Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 4 Jun 2024 13:05:13 +0200 Subject: [PATCH] CLI: Fix policy parameter should not expect an argument --- npbackup/__main__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/npbackup/__main__.py b/npbackup/__main__.py index a003e03..cdfc64d 100644 --- a/npbackup/__main__.py +++ b/npbackup/__main__.py @@ -130,9 +130,8 @@ This is free software, and you are welcome to redistribute it under certain cond ) parser.add_argument( "--policy", - type=str, - default=None, - required=False, + action="store_true", + default=False, help="Apply retention policy to snapshots", ) parser.add_argument(