diff --git a/confirm/command.go b/confirm/command.go index 60f9fea..e213a07 100644 --- a/confirm/command.go +++ b/confirm/command.go @@ -24,7 +24,11 @@ func (o Options) Run() error { // set options options = append(options, o.Affirmative) options = append(options, o.Negative) - options = append(options, o.Canceled) + if o.WithCancel { + options = append(options, o.Canceled) + } else { + options = append(options, "") + } // what is default theDefault = o.Default