diff --git a/falyx/parsers/argparse.py b/falyx/parsers/argparse.py index a6d3543..6b29f43 100644 --- a/falyx/parsers/argparse.py +++ b/falyx/parsers/argparse.py @@ -77,7 +77,11 @@ class Argument: and not self.positional ): choice_text = self.dest.upper() - elif isinstance(self.nargs, str): + elif self.action in ( + ArgumentAction.STORE, + ArgumentAction.APPEND, + ArgumentAction.EXTEND, + ) or isinstance(self.nargs, str): choice_text = self.dest if self.nargs == "?": diff --git a/falyx/parsers/parsers.py b/falyx/parsers/parsers.py index a6c7662..abdf40f 100644 --- a/falyx/parsers/parsers.py +++ b/falyx/parsers/parsers.py @@ -114,7 +114,7 @@ def get_arg_parsers( help="Skip confirmation prompts", ) - run_group.add_argument( + run_parser.add_argument( "command_args", nargs=REMAINDER, help="Arguments to pass to the command (if applicable)", diff --git a/falyx/version.py b/falyx/version.py index 57cc51c..c2e5539 100644 --- a/falyx/version.py +++ b/falyx/version.py @@ -1 +1 @@ -__version__ = "0.1.32" +__version__ = "0.1.33" diff --git a/pyproject.toml b/pyproject.toml index 02b5a2c..32afb3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "falyx" -version = "0.1.32" +version = "0.1.33" description = "Reliable and introspectable async CLI action framework." authors = ["Roland Thomas Jr "] license = "MIT"