diff options
Diffstat (limited to 'command/builder.go')
| -rw-r--r-- | command/builder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/command/builder.go b/command/builder.go index d3b0c3f5..174010ea 100644 --- a/command/builder.go +++ b/command/builder.go @@ -23,8 +23,8 @@ func newNode(output io.Writer, logf LogFunc, name, usage string) *node { n.set.SetOutput(output) n.set.Usage = func() { _ = n.writeHelp() - if n.suffix.Len() > 0 { - _, _ = fmt.Fprintln(output, "Flags:") + if len(n.suffix) > 0 { + _, _ = fmt.Fprintln(output, "flags:") n.set.PrintDefaults() _, _ = fmt.Fprintln(output) } |
