diff --git a/pkg/mflag/flag.go b/pkg/mflag/flag.go index 2cfef331f..ad23e540f 100644 --- a/pkg/mflag/flag.go +++ b/pkg/mflag/flag.go @@ -778,6 +778,9 @@ func (f *FlagSet) usage() { } func trimQuotes(str string) string { + if len(str) == 0 { + return str + } type quote struct { start, end byte }