minor reformat

This commit is contained in:
Alex Flint 2019-04-30 11:16:01 -07:00
parent e2dda40825
commit f282f71f26
1 changed files with 13 additions and 2 deletions

View File

@ -110,9 +110,20 @@ func (p *Parser) WriteHelp(w io.Writer) {
}
// write the list of built in options
p.printOption(w, &spec{boolean: true, long: "help", short: "h", help: "display this help and exit", root: -1})
p.printOption(w, &spec{
boolean: true,
long: "help",
short: "h",
help: "display this help and exit",
root: -1,
})
if p.version != "" {
p.printOption(w, &spec{boolean: true, long: "version", help: "display version and exit", root: -1})
p.printOption(w, &spec{
boolean: true,
long: "version",
help: "display version and exit",
root: -1,
})
}
}