diff options
| author | Christophe Serafin <[email protected]> | 2017-08-24 10:57:12 -0700 |
|---|---|---|
| committer | Albert Nigmatzianov <[email protected]> | 2017-09-01 17:08:50 +0500 |
| commit | 7aff26db30c1be810f9de5038ec5ef96ac41fd7c (patch) | |
| tree | ddabd6cff21ef95f1f957d249268bb58541c2dc0 | |
| parent | 230e229ea057d1dfa67530d799650af8ffc1cb9c (diff) | |
New: renamed intSlice to ints in usage
| -rw-r--r-- | flag.go | 2 | ||||
| -rw-r--r-- | flag_test.go | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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) |
