Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
The Unlicense
856
stars
30
forks
source link
StringSlice splits parameters with comma (",") #90
If I have a StringSlice flag called -f, passing -f "yes, this is all one parameter" will result in []string{"yes", "this is all one parameter"} and I need it to be []string{"yes, this is all one parameter"}
I know this is intended behavior since this commit, but is there a way to make it work the old way?
If I have a
StringSlice
flag called-f
, passing-f "yes, this is all one parameter"
will result in[]string{"yes", "this is all one parameter"}
and I need it to be[]string{"yes, this is all one parameter"}
I know this is intended behavior since this commit, but is there a way to make it work the old way?
Thanks!