fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
6e63a1e76c
commit
26d5fc5c0e
2
flag.go
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user