From 3c5e61a2927728226af0abafab402c511c4e27ac Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Fri, 3 May 2019 15:50:41 -0700 Subject: [PATCH] simplify Fprint call --- usage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) }