diff --git a/components/engine/pkg/mflag/flag.go b/components/engine/pkg/mflag/flag.go index 2cfef331f6..ad23e540fb 100644 --- a/components/engine/pkg/mflag/flag.go +++ b/components/engine/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 }