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

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 {