diff --git a/internal/cli/flags.go b/internal/cli/flags.go index 22474c86e..54a4c78bb 100644 --- a/internal/cli/flags.go +++ b/internal/cli/flags.go @@ -134,6 +134,10 @@ func registerBool(cmd *cobra.Command, f *Flag, value *bool, defaultValue bool, i func shouldAsk(cmd *cobra.Command, f *Flag, isUpdate bool) bool { if isUpdate { + if !f.IsRequired { + return false + } + return shouldPromptWhenFlagless(cmd, f.LongForm) }