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. --- flag.go | 1 + 1 file changed, 1 insertion(+) (limited to 'flag.go') diff --git a/flag.go b/flag.go index dfc03d2..47761a0 100644 --- a/flag.go +++ b/flag.go @@ -154,6 +154,7 @@ type Flag struct { type Value interface { String() string Set(string) error + Type() string } // sortFlags returns the flags as a slice in lexicographical sorted order. -- cgit v1.2.3