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 Dispatch-Trailer: {"type":"trybot","CL":1206784,"patchset":1,"ref":"refs/changes/84/1206784/1","targetBranch":"master"}
- Loading branch information