Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: improve cue vet examples' argument order
This changes the "cue vet" help text by modifying the order in which examples of the subcommand being used to validate non-CUE files refer to their CUE and non-CUE files. When individual CUE files (not packages) are used by "cue vet", then the order in which the CUE and non-CUE files are mentioned doesn't matter. But when a user explores how to use CUE packages in place of explicit CUE files, then the order matters. If the non-CUE file is mentioned first, followed by a CUE package, an error occurs. This change nudges the reader towards an invocation that will work if they use CUE packages, whilst still working when the commands are used verbatim, with individual CUE files. Also: in passing, clarify a sentence mentioning multiple expressions. Signed-off-by: Jonathan Matthews <[email protected]> Change-Id: I20a8530d288bd7a030e24c90f12bee3f9f6748e8 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193603 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information