From 26d5fc5c0ed34a25cf85234bd8d1bcb634a26ee6 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 2 Apr 2022 15:15:49 +0300 Subject: [PATCH] fixup Signed-off-by: Vasiliy Tolstov --- flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flag.go b/flag.go index c7cc240..a98e11d 100644 --- a/flag.go +++ b/flag.go @@ -214,7 +214,7 @@ func (c *flagConfig) usage() { } b.WriteString(strings.ReplaceAll(usage, "\n", "\n \t")) - if rutil.IsZero(f.Value) || f.Value.String() == f.DefValue { + if f.Value.String() == f.DefValue { fmt.Fprintf(&b, " (default %q)", f.DefValue) } else { fmt.Fprintf(&b, " (default %q current %q)", f.DefValue, f.Value)