Skip to content

Commit

Permalink
cmd/cue: clarify cue mod tidy --check help text
Browse files Browse the repository at this point in the history
This tweaks the help text for "cue mod tidy" when invoked with the
"--check" flag, clarifying that (a) it still fetches and caches
dependencies and (b) it causes the command to fail if the module.cue
file would otherwise have been updated.

Signed-off-by: Jonathan Matthews <[email protected]>
Change-Id: If36a63346269c5abe2b2c6c585cd80898a224039
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202607
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
  • Loading branch information
jpluscplusm authored and mvdan committed Nov 13, 2024
1 parent cbde66b commit 82995bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cue/cmd/modtidy.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Note that this command is not yet stable and may be changed.
RunE: mkRunE(c, runModTidy),
Args: cobra.ExactArgs(0),
}
cmd.Flags().Bool(string(flagCheck), false, "check for tidiness only; do not update module.cue file")
cmd.Flags().Bool(string(flagCheck), false, "check for tidiness after fetching dependencies; fail if module.cue would be updated")

return cmd
}
Expand Down

0 comments on commit 82995bb

Please sign in to comment.