@@ -84,7 +84,7 @@ func (f *FlagSet) GetStringSlice(name string) ([]string, error) {
8484// The argument p points to a []string variable in which to store the value of the flag.
8585// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
8686// For example:
87- // --ss="v1,v2" -ss="v3"
87+ // --ss="v1,v2" -- ss="v3"
8888// will result in
8989// []string{"v1", "v2", "v3"}
9090func (f * FlagSet ) StringSliceVar (p * []string , name string , value []string , usage string ) {
@@ -100,7 +100,7 @@ func (f *FlagSet) StringSliceVarP(p *[]string, name, shorthand string, value []s
100100// The argument p points to a []string variable in which to store the value of the flag.
101101// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
102102// For example:
103- // --ss="v1,v2" -ss="v3"
103+ // --ss="v1,v2" -- ss="v3"
104104// will result in
105105// []string{"v1", "v2", "v3"}
106106func StringSliceVar (p * []string , name string , value []string , usage string ) {
@@ -116,7 +116,7 @@ func StringSliceVarP(p *[]string, name, shorthand string, value []string, usage
116116// The return value is the address of a []string variable that stores the value of the flag.
117117// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
118118// For example:
119- // --ss="v1,v2" -ss="v3"
119+ // --ss="v1,v2" -- ss="v3"
120120// will result in
121121// []string{"v1", "v2", "v3"}
122122func (f * FlagSet ) StringSlice (name string , value []string , usage string ) * []string {
@@ -136,7 +136,7 @@ func (f *FlagSet) StringSliceP(name, shorthand string, value []string, usage str
136136// The return value is the address of a []string variable that stores the value of the flag.
137137// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
138138// For example:
139- // --ss="v1,v2" -ss="v3"
139+ // --ss="v1,v2" -- ss="v3"
140140// will result in
141141// []string{"v1", "v2", "v3"}
142142func StringSlice (name string , value []string , usage string ) * []string {
0 commit comments