Skip to content

Commit

Permalink
New: renamed intSlice to ints in usage
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-serafin authored and n10v committed Sep 1, 2017
1 parent 230e229 commit 7aff26d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ func UnquoteUsage(flag *Flag) (name string, usage string) {
name = "uint"
case "stringSlice":
name = "strings"
case "intSlice":
name = "ints"
}

return
Expand Down
2 changes: 1 addition & 1 deletion flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7aff26d

Please sign in to comment.