aboutsummaryrefslogtreecommitdiff
path: root/int_slice_test.go
AgeCommit message (Collapse)Author
2016-08-20Add check of error in int slice testbogem
2015-08-15Fix up minor things found by goreportcard.comEric Paris
2015-08-14typoRick Olson
2015-08-12Do not append to default values in {String,Int}SliceEric Paris
I added the ability to do: `-s=bob -s=john` and get `[]string{"bob", "john"}` But if a default value was set to say `[]string{"eric"}` the above operation was mistakenly resulting in: `[]string{"eric", "bob", "john"} which was obviously not what was intended. This is fixed by tracking if a value was parsed and overwriting the default on the first time -s is found, but we append the 2+ time.
2015-08-05Empty slices should be empty, not have a single (empty) stringEric Paris
2015-08-05String and Int slices called twice should append not overwriteEric Paris
This allows users to do things like ``` cmd --filename=file1 --filename=file2 --filename=file3,file4 ``` And internally we will get ``` []string{"file1", "file2", "file3", "file4"} ```
2015-06-22Tests for GetIntSlice and GetStringSliceEric Paris
2015-06-22Much like stringSlice, add intSlice flag typeEric Paris