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