aboutsummaryrefslogtreecommitdiff
path: root/flag_test.go
diff options
context:
space:
mode:
authorgonix <[email protected]>2017-10-05 23:42:34 +0300
committerEric Paris <[email protected]>2017-10-05 16:42:34 -0400
commit2c300e72a98b4351617d9b927d2d2860ece8ee24 (patch)
tree0de53385665dfc8fa6bb8ddf49c5facf52d602b9 /flag_test.go
parentbe7121dd7a937a85e1e4b1ddda6a3edce3466110 (diff)
Fixing Count flag usage string (#141)
Diffstat (limited to 'flag_test.go')
-rw-r--r--flag_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/flag_test.go b/flag_test.go
index fe9a4a3..4f7310d 100644
--- a/flag_test.go
+++ b/flag_test.go
@@ -1052,6 +1052,7 @@ const defaultOutput = ` --A for bootstrapping, allo
--custom custom custom Value implementation
--customP custom a VarP with default (default 10)
--maxT timeout set timeout for dial
+ -v, --verbose count verbosity
`
// Custom value that satisfies the Value interface.
@@ -1092,6 +1093,7 @@ func TestPrintDefaults(t *testing.T) {
fs.ShorthandLookup("E").NoOptDefVal = "1234"
fs.StringSlice("StringSlice", []string{}, "string slice with zero default")
fs.StringArray("StringArray", []string{}, "string array with zero default")
+ fs.CountP("verbose", "v", "verbosity")
var cv customValue
fs.Var(&cv, "custom", "custom Value implementation")