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, )