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
cmd/cue: avoid confusing "unknown flag" errors in cue mod
If the user runs
cue mod nosuchcommand --nosuchflag
we'd fail with "unknown flag --nosuchflag" which is technically correct,
but "no such subcommand" is a much more useful error message.
For example, if a user on CUE v0.12.0 tries to run a newer command
which doesn't exist yet, such as `cue mod mirror --to=...`,
the error would not clearly point to `mod mirror` not existing yet.
Fixes#3810.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Iabd3780335f3d30488bb667d9115ec2af843d0d9
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211267
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments