aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2014-07-11 10:25:27 -0400
committerspf13 <[email protected]>2014-07-11 10:25:27 -0400
commit463bdc838f2b35e9307e91d480878bda5fff7232 (patch)
treecb01b60a27df6601aa01c06791bec65e0c2674b4 /flag.go
parentb02196a78893a71903e9ad98359e7f891b1e7781 (diff)
Adding Type() method to the values.
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go1
1 files changed, 1 insertions, 0 deletions
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.