From ad5e8c357903f0a238c40d89e5b06ddad729e3d7 Mon Sep 17 00:00:00 2001 From: faizan-siddiqui Date: Thu, 16 Jan 2025 13:24:47 +1100 Subject: [PATCH] update error message to be more readable Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com> --- flag_groups.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flag_groups.go b/flag_groups.go index 87ae791..df0cc12 100644 --- a/flag_groups.go +++ b/flag_groups.go @@ -254,8 +254,8 @@ func validateIfPresentThenRequiredFlagGroups(data map[string]map[string]bool) er // If any dependent flags are unset, trigger an error if len(unset) > 0 { return fmt.Errorf( - "if the first flag in the group [%v] is set, all other flags must be set; the following flags are not set: %v", - flagList, unset, + "%v is set, the following flags must be provided: %v", + flagList[0], unset, ) } }