diff --git a/pkg/flag/options.go b/pkg/flag/options.go index bfbad34826cb..2b80760ec5ec 100644 --- a/pkg/flag/options.go +++ b/pkg/flag/options.go @@ -115,7 +115,7 @@ func (f *Flag[T]) Parse() error { } if f.Removed != "" && f.isSet() { log.Errorf(`"--%s" was removed. %s`, f.Name, f.Removed) - return xerrors.Errorf(`"--%s" was removed`, f.Name) + return xerrors.Errorf(`removed flag ("--%s")`, f.Name) } f.value = value