Fix run_group parser for REMAINDER, fix render_help formatting

This commit is contained in:
Roland Thomas Jr 2025-05-22 14:59:16 -04:00
parent 0a1ba22a3d
commit b0c0e7dc16
Signed by: roland
GPG Key ID: 7C3C2B085A4C2872
4 changed files with 8 additions and 4 deletions

View File

@ -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 == "?":

View File

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

View File

@ -1 +1 @@
__version__ = "0.1.32"
__version__ = "0.1.33"

View File

@ -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 <roland@rtj.dev>"]
license = "MIT"