aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
authorEric Paris <[email protected]>2016-09-06 09:43:34 -0400
committerGitHub <[email protected]>2016-09-06 09:43:34 -0400
commit6fd2ff4ff8dfcdf5556fbdc0ac0284408274b1a7 (patch)
tree0b879204d147d343013bfd9df10c26e0d9fdda0b /flag.go
parent103ce5cd2042f2fe629c1957abb64ab3e7f50235 (diff)
parent191ef6fd817dfda320833b43a97932f049562514 (diff)
Merge pull request #90 from wu8685/string_array
add a new type StringArray
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/flag.go b/flag.go
index eb143d7..c28f3bd 100644
--- a/flag.go
+++ b/flag.go
@@ -434,7 +434,7 @@ func (f *Flag) defaultIsZeroValue() bool {
return f.DefValue == ""
case *ipValue, *ipMaskValue, *ipNetValue:
return f.DefValue == "<nil>"
- case *intSliceValue, *stringSliceValue:
+ case *intSliceValue, *stringSliceValue, *stringArrayValue:
return f.DefValue == "[]"
default:
return true