From 7aff26db30c1be810f9de5038ec5ef96ac41fd7c Mon Sep 17 00:00:00 2001 From: Christophe Serafin Date: Thu, 24 Aug 2017 10:57:12 -0700 Subject: [PATCH] New: renamed intSlice to ints in usage --- flag.go | 2 ++ flag_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/flag.go b/flag.go index ab5e840d..7b84e2cd 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 0c67c24f..29fec867 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)