Skip to content

Commit

Permalink
Removed extra line break on 'Options:' help text
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraimgm committed Sep 26, 2019
1 parent 1963e23 commit a843957
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion help.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func printHelpOptions(cmd *Cmd, writer io.Writer) {
return cmd.optentries[i].helpHeader() < cmd.optentries[j].helpHeader()
})

fmt.Fprintf(writer, "\nOptions:\n")
fmt.Fprintf(writer, "\nOptions:")

for _, entry := range cmd.optentries {
fmt.Fprintf(writer, "\n %s", entry.helpHeader())
Expand Down
1 change: 0 additions & 1 deletion testdata/args.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ this is a very long description
USAGE: app [OPTIONS...] [OPERANDS...]

Options:

-h, --help
Show this help message.

Expand Down
1 change: 0 additions & 1 deletion testdata/command.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ this is a very long description
USAGE: app [OPTIONS...] COMMAND

Options:

-h, --help
Show this help message.

Expand Down
1 change: 0 additions & 1 deletion testdata/commandargs.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ this is a very long description
USAGE: app [OPTIONS...] COMMAND

Options:

-h, --help
Show this help message.

Expand Down
1 change: 0 additions & 1 deletion testdata/default.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ this is a very long description
USAGE: app [OPTIONS...] [OPERANDS...]

Options:

-h, --help
Show this help message.

Expand Down
1 change: 0 additions & 1 deletion testdata/nohelp.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ this is a very long description
USAGE: app [OPTIONS...] [OPERANDS...]

Options:

-i, --aint
sets a int value

Expand Down
1 change: 0 additions & 1 deletion testdata/partial.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ this is a very long description
USAGE: app [OPTIONS...] [OPERANDS...]

Options:

--aint
sets a int value

Expand Down
1 change: 0 additions & 1 deletion testdata/shallow-op-repeat.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Runs a computation that returns the sum of two specified numbers.
USAGE: app add [OPTIONS...] [number1 others... | COMMAND]

Options:

-h, --help
Show this help message.

Expand Down
1 change: 0 additions & 1 deletion testdata/shallow-op.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Runs a computation that returns the sum of two specified numbers.
USAGE: app add [OPTIONS...] [number1 number2 | COMMAND]

Options:

-h, --help
Show this help message.

Expand Down
1 change: 0 additions & 1 deletion testdata/shallow.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Runs a computation that returns the sum of two specified numbers.
USAGE: app add [OPTIONS...] COMMAND

Options:

-h, --help
Show this help message.

Expand Down

0 comments on commit a843957

Please sign in to comment.