aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/flag.go b/flag.go
index 81b3c1f..c99ccf3 100644
--- a/flag.go
+++ b/flag.go
@@ -387,7 +387,7 @@ func (f *FlagSet) FlagUsages() string {
if len(flag.NoOptDefVal) > 0 {
format = format + "["
}
- if _, ok := flag.Value.(*stringValue); ok {
+ if flag.Value.Type() == "string" {
// put quotes on the value
format = format + "=%q"
} else {