Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: fix
cue help cmd mycmd ./mypkg
Jonathan Matthews correctly pointed out that a tutorial used the command successfully up to and including CUE v0.8.0, but it broke from v0.9.0. My refactor at https://cuelang.org/cl/1194247 was overall good, but it did break this edge case, which in my defense had no tests. Add tests, and fix the code. The issue was that we left args as ["cmd", "mycmd", "./mypkg"], where the valid command is only ["cmd", "mycmd"], so we treated this scenario as an unknown subcommand. Fixes #3462. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I2208fa8411f1122ede863b8dc6a5d81805562f30 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201709 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
- Loading branch information