From 1c44c42794b98678896beaa00fb0334d6a947bca Mon Sep 17 00:00:00 2001 From: faizan-siddiqui Date: Thu, 16 Jan 2025 13:25:44 +1100 Subject: [PATCH] fix comment to say other flags will be marked required instead of second flag Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com> --- flag_groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flag_groups.go b/flag_groups.go index df0cc12..4a0875b 100644 --- a/flag_groups.go +++ b/flag_groups.go @@ -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 {