Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

terminal columns are not always available, assume 80

  • Loading branch information...
commit 82950e31aa826988fa64cfbde9cf5cdceadf7050 1 parent 08790ce
@fabiokung authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  help.go
View
3  help.go
@@ -109,6 +109,9 @@ func (p *Parser) WriteHelp(writer io.Writer) {
maxlen := maxlonglen + 4
termcol := getTerminalColumns()
+ if termcol <= 0 {
+ termcol = 80
+ }
for _, grp := range p.Groups {
wr.WriteString("\n")

0 comments on commit 82950e3

Please sign in to comment.
Something went wrong with that request. Please try again.