aboutsummaryrefslogtreecommitdiff
path: root/bool_func.go
diff options
context:
space:
mode:
Diffstat (limited to 'bool_func.go')
-rw-r--r--bool_func.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bool_func.go b/bool_func.go
index 05783a9..83d77af 100644
--- a/bool_func.go
+++ b/bool_func.go
@@ -5,7 +5,7 @@ type boolfuncValue func(string) error
func (f boolfuncValue) Set(s string) error { return f(s) }
-func (f boolfuncValue) Type() string { return "func" }
+func (f boolfuncValue) Type() string { return "boolfunc" }
func (f boolfuncValue) String() string { return "" } // same behavior as stdlib 'flag' package
@@ -35,6 +35,6 @@ func BoolFunc(name string, usage string, fn func(string) error) {
}
// BoolFuncP is like BoolFunc, but accepts a shorthand letter that can be used after a single dash.
-func BoolFuncP(name, shorthand string, fn func(string) error, usage string) {
+func BoolFuncP(name, shorthand string, usage string, fn func(string) error) {
CommandLine.BoolFuncP(name, shorthand, usage, fn)
}