Bump spf13/pflag

This commit is contained in:
Fabiano Franz 2015-11-25 12:48:23 -02:00
parent 2f7479ac23
commit 814b8a3a21
3 changed files with 9 additions and 2 deletions

2
Godeps/Godeps.json generated
View File

@ -686,7 +686,7 @@
},
{
"ImportPath": "github.com/spf13/pflag",
"Rev": "b084184666e02084b8ccb9b704bf0d79c466eb1d"
"Rev": "08b1a584251b5b62f458943640fc8ebd4d50aaa5"
},
{
"ImportPath": "github.com/stretchr/objx",

View File

@ -5,6 +5,7 @@ language: go
go:
- 1.3
- 1.4
- 1.5
- tip
install:

View File

@ -1,6 +1,7 @@
package pflag
import (
"encoding/csv"
"fmt"
"strings"
)
@ -21,7 +22,12 @@ func newStringSliceValue(val []string, p *[]string) *stringSliceValue {
}
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 {
*s.value = v
} else {