simplify Fprint call
This commit is contained in:
parent
b83047068d
commit
3c5e61a292
2
usage.go
2
usage.go
|
@ -56,7 +56,7 @@ func (p *Parser) writeUsageForCommand(w io.Writer, cmd *command) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// print the beginning of the usage string
|
// print the beginning of the usage string
|
||||||
fmt.Fprintf(w, "Usage:")
|
fmt.Fprint(w, "Usage:")
|
||||||
for i := len(ancestors) - 1; i >= 0; i-- {
|
for i := len(ancestors) - 1; i >= 0; i-- {
|
||||||
fmt.Fprint(w, " "+ancestors[i])
|
fmt.Fprint(w, " "+ancestors[i])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue