Fix run_group parser for REMAINDER, fix render_help formatting
This commit is contained in:
parent
0a1ba22a3d
commit
b0c0e7dc16
|
@ -77,7 +77,11 @@ class Argument:
|
||||||
and not self.positional
|
and not self.positional
|
||||||
):
|
):
|
||||||
choice_text = self.dest.upper()
|
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
|
choice_text = self.dest
|
||||||
|
|
||||||
if self.nargs == "?":
|
if self.nargs == "?":
|
||||||
|
|
|
@ -114,7 +114,7 @@ def get_arg_parsers(
|
||||||
help="Skip confirmation prompts",
|
help="Skip confirmation prompts",
|
||||||
)
|
)
|
||||||
|
|
||||||
run_group.add_argument(
|
run_parser.add_argument(
|
||||||
"command_args",
|
"command_args",
|
||||||
nargs=REMAINDER,
|
nargs=REMAINDER,
|
||||||
help="Arguments to pass to the command (if applicable)",
|
help="Arguments to pass to the command (if applicable)",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.32"
|
__version__ = "0.1.33"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "falyx"
|
name = "falyx"
|
||||||
version = "0.1.32"
|
version = "0.1.33"
|
||||||
description = "Reliable and introspectable async CLI action framework."
|
description = "Reliable and introspectable async CLI action framework."
|
||||||
authors = ["Roland Thomas Jr <roland@rtj.dev>"]
|
authors = ["Roland Thomas Jr <roland@rtj.dev>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
Loading…
Reference in New Issue