Commit 814b8a3a authored by Fabiano Franz's avatar Fabiano Franz

Bump spf13/pflag

parent 2f7479ac
...@@ -686,7 +686,7 @@ ...@@ -686,7 +686,7 @@
}, },
{ {
"ImportPath": "github.com/spf13/pflag", "ImportPath": "github.com/spf13/pflag",
"Rev": "b084184666e02084b8ccb9b704bf0d79c466eb1d" "Rev": "08b1a584251b5b62f458943640fc8ebd4d50aaa5"
}, },
{ {
"ImportPath": "github.com/stretchr/objx", "ImportPath": "github.com/stretchr/objx",
......
...@@ -5,6 +5,7 @@ language: go ...@@ -5,6 +5,7 @@ language: go
go: go:
- 1.3 - 1.3
- 1.4 - 1.4
- 1.5
- tip - tip
install: install:
......
package pflag package pflag
import ( import (
"encoding/csv"
"fmt" "fmt"
"strings" "strings"
) )
...@@ -21,7 +22,12 @@ func newStringSliceValue(val []string, p *[]string) *stringSliceValue { ...@@ -21,7 +22,12 @@ func newStringSliceValue(val []string, p *[]string) *stringSliceValue {
} }
func (s *stringSliceValue) Set(val string) error { func (s *stringSliceValue) Set(val string) error {
v := strings.Split(val, ",") stringReader := strings.NewReader(val)
csvReader := csv.NewReader(stringReader)
v, err := csvReader.Read()
if err != nil {
return err
}
if !s.changed { if !s.changed {
*s.value = v *s.value = v
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment