From 8d4c9bc4700bd728d511b7fc79c2cc23577dd8b9 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 10 Jan 2025 05:11:23 +0100 Subject: [PATCH] Rename variable --- knotctl/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/knotctl/__init__.py b/knotctl/__init__.py index fe68b73..dbd8351 100755 --- a/knotctl/__init__.py +++ b/knotctl/__init__.py @@ -499,7 +499,10 @@ def get_parser() -> dict: configcmd.add_argument("-C", "--current", action=argparse.BooleanOptionalAction) - configcmd.add_argument("-l", "--list", action="store_true") + configcmd.add_argument("-l", + "--list", + action=argparse.BooleanOptionalAction, + dest="list_config") configcmd.add_argument("-p", "--password") configcmd.add_argument("-u", "--username") @@ -643,8 +646,8 @@ def main() -> int: config_filename, args.context, args.baseurl, + args.list_config, args.username, - args.list, args.password, args.current, )