mirror of
https://github.com/spf13/cobra
synced 2025-01-30 15:36:47 +00:00
fix comment to say other flags will be marked required instead of second flag
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This commit is contained in:
parent
cb45935c4b
commit
1c44c42794
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ func sortedKeys(m map[string]map[string]bool) []string {
|
|||
// - when a flag in a group is present, other flags in the group will be marked required
|
||||
// - when none of the flags in a one-required group are present, all flags in the group will be marked required
|
||||
// - when a flag in a mutually exclusive group is present, other flags in the group will be marked as hidden
|
||||
// - when the first flag in an if-present-then-required group is present, the second flag will be marked as required
|
||||
// - when the first flag in an if-present-then-required group is present, the other flags will be marked as required
|
||||
// This allows the standard completion logic to behave appropriately for flag groups
|
||||
func (c *Command) enforceFlagGroupsForCompletion() {
|
||||
if c.DisableFlagParsing {
|
||||
|
|
Loading…
Reference in a new issue