-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: fail when requesting a missing help topic
We cover all edge cases now; a missing help command, sub-command, and "cmd" command, as well as all the valid help combinations. Note that for unknown "cmd" commands we print a more precise error, and we also check that custom commands are added to the help text in all cases where we print help text for cmd. We join help_hello.txtar with help_cmd.txtar given their overlap. Thanks to Naoki Kuroda for proposing a version of the fix in #2759 which was adapted here, along with more testscript coverage. Fixes #2560. Fixes #2918. Closes #2759 as partially merged. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I252e57c59eab499e40daea45355f1da75acba249 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194247 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information
Showing
4 changed files
with
84 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.