aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
authorwu8685 <[email protected]>2016-09-06 19:35:35 +0800
committerwu8685 <[email protected]>2016-09-06 19:35:35 +0800
commit191ef6fd817dfda320833b43a97932f049562514 (patch)
tree0b879204d147d343013bfd9df10c26e0d9fdda0b /flag.go
parent103ce5cd2042f2fe629c1957abb64ab3e7f50235 (diff)
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