aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Serafin <[email protected]>2017-08-24 10:57:12 -0700
committerAlbert Nigmatzianov <[email protected]>2017-09-01 17:08:50 +0500
commit7aff26db30c1be810f9de5038ec5ef96ac41fd7c (patch)
treeddabd6cff21ef95f1f957d249268bb58541c2dc0
parent230e229ea057d1dfa67530d799650af8ffc1cb9c (diff)
New: renamed intSlice to ints in usage
-rw-r--r--flag.go2
-rw-r--r--flag_test.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/flag.go b/flag.go
index ab5e840..7b84e2c 100644
--- a/flag.go
+++ b/flag.go
@@ -558,6 +558,8 @@ func UnquoteUsage(flag *Flag) (name string, usage string) {
name = "uint"
case "stringSlice":
name = "strings"
+ case "intSlice":
+ name = "ints"
}
return
diff --git a/flag_test.go b/flag_test.go
index 0c67c24..29fec86 100644
--- a/flag_test.go
+++ b/flag_test.go
@@ -978,7 +978,7 @@ const defaultOutput = ` --A for bootstrapping, allo
--IP ip IP address with no default
--IPMask ipMask Netmask address with no default
--IPNet ipNet IP network with no default
- --Ints intSlice int slice with zero default
+ --Ints ints int slice with zero default
--N int a non-zero int (default 27)
--ND1 string[="bar"] a string with NoOptDefVal (default "foo")
--ND2 num[=4321] a num with NoOptDefVal (default 1234)