Skip to content

Commit

Permalink
cmd/cue/cmd: correct documentation for -d flag
Browse files Browse the repository at this point in the history
Fixes #751

Change-Id: I3bb1005c33e50dbdcc3b487ee1d1d5f51354f816
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8782
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
  • Loading branch information
mpvl committed Feb 17, 2021
1 parent 430c3dd commit 5d3afa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cue/cmd/vet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contain multiple objects (such as using --- in YAML), they will all be verified
individually.
By default, each file is checked against the root of the loaded CUE files.
The -e can be used to only verify files against the result of an expression
The -d can be used to only verify files against the result of an expression
evaluated within the CUE files. This can be useful if the CUE files contain
a set of definitions to pick from.
Expand All @@ -56,7 +56,7 @@ Examples:
cue vet foo.yaml foo.cue
# Check files against a particular expression
cue vet translations/*.yaml foo.cue -e Translation
cue vet translations/*.yaml foo.cue -d '#Translation'
If more than one expression is given, all must match all values.
`
Expand Down

0 comments on commit 5d3afa9

Please sign in to comment.