summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/usage.go b/usage.go
index fc8b09a..4704183 100644
--- a/usage.go
+++ b/usage.go
@@ -117,6 +117,9 @@ func (p *Parser) writeUsageForCommand(w io.Writer, cmd *command) {
}
func printTwoCols(w io.Writer, left, help string, defaultVal string, envVal string) {
+ if left == "" {
+ return
+ }
lhs := " " + left
fmt.Fprint(w, lhs)
if help != "" {