This commit is contained in:
2026-02-11 20:25:22 -08:00
parent ba623cb992
commit 6416aeceec
4 changed files with 327 additions and 142 deletions

View File

@@ -585,11 +585,11 @@ def parse_cmdlet_args(args: Sequence[str],
result = parse_cmdlet_args(["value1", "-count", "5"], cmdlet)
# result = {"path": "value1", "count": "5"}
"""
try:
try:
from SYS.cmdlet_spec import parse_cmdlet_args as _parse_cmdlet_args_fast
return _parse_cmdlet_args_fast(args, cmdlet_spec)
except Exception:
except Exception:
# Fall back to local implementation below to preserve behavior if the
# lightweight parser is unavailable.
pass