aboutsummaryrefslogtreecommitdiff
path: root/bool.go
diff options
context:
space:
mode:
Diffstat (limited to 'bool.go')
-rw-r--r--bool.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bool.go b/bool.go
index 60beb54..010576c 100644
--- a/bool.go
+++ b/bool.go
@@ -19,6 +19,10 @@ func (b *boolValue) Set(s string) error {
return err
}
+func (b *boolValue) Type() string {
+ return "bool"
+}
+
func (b *boolValue) String() string { return fmt.Sprintf("%v", *b) }
// BoolVar defines a bool flag with specified name, default value, and usage string.