diff options
| author | Alex Flint <[email protected]> | 2015-11-04 09:47:58 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2015-11-04 09:47:58 -0800 |
| commit | 9111061915102e12f0e3481c3bf88aa23a3d7324 (patch) | |
| tree | 9ace7877b43e833479ee523ee76043eb59d8b58b /usage.go | |
| parent | 3bcc30f8fefe10a730e0df3a30ce1eb3c54b0861 (diff) | |
add tests for usage info
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ func (p *Parser) WriteHelp(w io.Writer) { if spec.short != "" { left += ", " + synopsis(spec, "-"+spec.short) } - fmt.Print(left) + fmt.Fprint(w, left) if spec.help != "" { if len(left)+2 < colWidth { fmt.Fprint(w, strings.Repeat(" ", colWidth-len(left))) |
