You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(jrag): robust subcommand detection in argparse-error envelope
The previous cmd-prefix heuristic picked the first non-dash argv token,
which misidentified the ``json`` in ``jrag --format json`` (no subcommand)
as the subcommand and prefixed the error with ``json:``. Replaced the hand
rolled scanner with a minimal pre-parser (parse_known_args with a parser
that only knows --format/--detail) so flag VALUES are consumed before the
subcommand is selected. The leftover argv then has the real subcommand as
its first non-dash token.
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments