Add FalyxCompleter, Add check for valid directory for SelectFileAction, Add more detail to error messages in CommandArgumentParser, Don't initialize CAP if a custom parser is used

This commit is contained in:
2025-07-03 00:58:57 -04:00
parent e2f0bf5903
commit ed42f6488e
9 changed files with 164 additions and 37 deletions

View File

@ -403,8 +403,9 @@ async def test_parse_args_nargs():
parser.add_argument("--action", action="store_true")
args = await parser.parse_args(["a", "b", "c", "--action"])
assert args["files"] == ["a", "b"]
assert args["mode"] == "c"
args = await parser.parse_args(["--action", "a", "b", "c"])
assert args["files"] == ["a", "b"]
assert args["mode"] == "c"