summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2019-05-03 15:50:41 -0700
committerAlex Flint <[email protected]>2019-05-03 15:50:41 -0700
commit3c5e61a2927728226af0abafab402c511c4e27ac (patch)
tree592a865d976d80f82d4a6884a7db3b140ed781eb /usage.go
parentb83047068d06bf682cdcaad3a090ff289df827b1 (diff)
simplify Fprint call
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usage.go b/usage.go
index 69e4e62..1f6b569 100644
--- a/usage.go
+++ b/usage.go
@@ -56,7 +56,7 @@ func (p *Parser) writeUsageForCommand(w io.Writer, cmd *command) {
}
// print the beginning of the usage string
- fmt.Fprintf(w, "Usage:")
+ fmt.Fprint(w, "Usage:")
for i := len(ancestors) - 1; i >= 0; i-- {
fmt.Fprint(w, " "+ancestors[i])
}