Same flag in different groups that created by MarkFlagsRequiredTogether not work as expected #1738
Labels
area/flags-args
Changes to functionality around command line flags and args
kind/feature
A feature request for cobra; new or enhanced behavior
lifecycle/needs-pr
Ready for a PR from the community
Hi all!
I would like to have different groups that created using option MarkFlagsRequiredTogether with the same flag. I.e. I would like to have this:
to run memory or cpu profiling independently, like this:
or
or even altogether like this:
but independent run failed with
Error: if any flags in the group [cpuprofile diag] are set they must all be set; missing [cpuprofile]
The text was updated successfully, but these errors were encountered: