Open jpluscplusm opened 1 month ago
cc @mvdan because this could be related to recent JSONL issues.
Per my last review of https://review.gerrithub.io/c/cue-lang/cue/+/1199496 I actually think the help text was right in the original version; combining --list
and --path
is a supported behavior.
From my reading of the flags, combining --list
and --merge
shouldn't be useful, as they do opposite things, and perhaps we should treat that as an error for the sake of UX.
text updated here to reflect the correction anticipated in https://cuelang.org/cl/1199496
I'm not clear that CL is correct FWIW, so I don't think we can rely on the expectations that follow.
I suggest we pick things up in https://github.com/cue-lang/cue/issues/3385 first.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
0.9.2 is latest.
What did you do?
I read https://cuelang.org/docs/reference/command/cue-help-flags/ (text updated here to reflect the correction anticipated in https://cuelang.org/cl/1199496):
I then tried to use the information in the final sentence, combining
--merge
and--list
in a singlecue export
command:What did you expect to see?
I expected to see
cue export --merge --list
behaving differently fromcue export --list
, when given "entries with the same path" - resulting in a failing test.What did you see instead?
A passing test. I can't provide a failing test, as I don't understand what effect the help text is documenting.