Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: allow interspersed flags in
cue cmd
All of our commands allow this as it is a default in cobra, but we disallowed mixing flags and arguments in `cue cmd` since the first flag was added via https://cue-review.googlesource.com/c/cue/+/4949. There wasn't any justification to the restriction in the commit message or code, and there aren't any tests which break when removing the line. Moreover, `cue foo . -t tag` worked as a shortcut command before, perhaps by accident due to how we implemented short commands, so it doesn't make any sense for `cue cmd foo . -t tag` to now fail. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I9119e7205bf778be7d03f57fa8a22338bf3d6e5a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1206784 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information