From 463bdc838f2b35e9307e91d480878bda5fff7232 Mon Sep 17 00:00:00 2001 From: spf13 Date: Fri, 11 Jul 2014 10:25:27 -0400 Subject: Adding Type() method to the values. --- bool.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bool.go') 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. -- cgit v1.2.3