Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2022-04-02 15:15:49 +03:00
parent 6e63a1e76c
commit 26d5fc5c0e

View File

@ -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)