bump(github.com/spf13/pflag): 5ccb023bc27df288a957c5e994cd44fd19619465

This commit is contained in:
Martin Milata
2016-10-27 16:25:28 +02:00
parent 5423eaf431
commit 1d894c7a6a
5 changed files with 7 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ func (s *stringSliceValue) String() string {
}
func stringSliceConv(sval string) (interface{}, error) {
sval = strings.Trim(sval, "[]")
sval = sval[1 : len(sval)-1]
// An empty string would cause a slice with one (empty) string
if len(sval) == 0 {
return []string{}, nil