Skip to content

fix(cli): accept -v/--verbose before the subcommand; stop suggesting a flag as its own correction - #2303

Merged
e-dobrowolska merged 3 commits into
mainfrom
edobrowolska/cli_behaviour_fixes
Aug 4, 2026
Merged

e-dobrowolska merged 3 commits into
mainfrom
edobrowolska/cli_behaviour_fixes

Conversation

@e-dobrowolska

Copy link
Copy Markdown
Contributor

Related to #1434
Fixes DEFECT A β€” -v / --verbose is not global.

Issue: -v/--verbose was registered only on leaf subparsers, so gym -v list benchmarks failed while the trailing form worked - it is now on the top-level parser too. The "did you mean?" hint also matched a misplaced flag against itself; the rejected token is now excluded from its own candidate set.

Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@kajalj22 kajalj22 added the r0.5.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Aug 4, 2026
@anwithk
anwithk requested a review from adil-a August 4, 2026 18:07
@e-dobrowolska
e-dobrowolska merged commit 85e25c1 into main Aug 4, 2026
16 checks passed
@e-dobrowolska
e-dobrowolska deleted the edobrowolska/cli_behaviour_fixes branch August 4, 2026 23:13
kajalj22 added a commit that referenced this pull request Aug 5, 2026
…ting a flag as its own correction (2303)` into `r0.5.0` (#2335)

beep boop [πŸ€–]: Hi @e-dobrowolska πŸ‘‹,

    we've cherry picked #2303 into  for you! πŸš€

    Please review and approve this cherry pick by your convenience!

Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
Co-authored-by: Ewa Dobrowolska <117774842+e-dobrowolska@users.noreply.github.com>
Co-authored-by: Anwith Kiran <anwithk@nvidia.com>
Co-authored-by: kajalj22 <kajalj@nvidia.com>
OlegSudakov pushed a commit to OlegSudakov/Gym that referenced this pull request Aug 7, 2026
…a flag as its own correction (NVIDIA-NeMo#2303)

Related to NVIDIA-NeMo#1434 
Fixes DEFECT A β€” `-v` / `--verbose` is not global.

Issue: `-v`/`--verbose` was registered only on leaf subparsers, so `gym
-v list benchmarks` failed while the trailing form worked - it is now on
the top-level parser too. The "did you mean?" hint also matched a
misplaced flag against itself; the rejected token is now excluded from
its own candidate set.

Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
Co-authored-by: Anwith Kiran <anwithk@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.5.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants