diff --git a/mflag/flag.go b/mflag/flag.go index 2cfef33..ad23e54 100644 --- a/mflag/flag.go +++ b/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 }