aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
authorChristophe Serafin <[email protected]>2017-08-02 18:52:18 -0700
committerAlbert Nigmatzianov <[email protected]>2017-09-01 17:08:50 +0500
commitadc6ccc62c61bc48e0ba9c6e71fdc4d23558af9f (patch)
tree39738d3ba33aeca94d41c3a7a021040951d58353 /flag.go
parente57e3eeb33f795204c1ca35f56c44f83227c6e66 (diff)
New: added a default name to avoid stringSlice in the usage message.
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/flag.go b/flag.go
index 6f1fc30..ab5e840 100644
--- a/flag.go
+++ b/flag.go
@@ -556,6 +556,8 @@ func UnquoteUsage(flag *Flag) (name string, usage string) {
name = "int"
case "uint64":
name = "uint"
+ case "stringSlice":
+ name = "strings"
}
return