From f579adf05f433ee982eb79b783149a84aebcec48 Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Sat, 27 Jan 2024 05:46:49 +0800 Subject: [PATCH] add inserting comma inside value instruction to flag description (#5666) --- lib/flagutil/array.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/flagutil/array.go b/lib/flagutil/array.go index 8f008bb34b..5ab4524a4b 100644 --- a/lib/flagutil/array.go +++ b/lib/flagutil/array.go @@ -11,6 +11,7 @@ import ( // NewArrayString returns new ArrayString with the given name and description. func NewArrayString(name, description string) *ArrayString { description += "\nSupports an `array` of values separated by comma or specified via multiple flags." + description += "\nValue can contain comma inside single-quoted or double-quoted string, {}, [] and () braces." var a ArrayString flag.Var(&a, name, description) return &a