Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Issue #349.
  • Loading branch information
jessevdk committed Mar 21, 2021
1 parent be6ab81 commit 59f46c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func TestMan(t *testing.T) {
var opts helpOptions
p := NewNamedParser("TestMan", HelpFlag)
p.ShortDescription = "Test manpage generation"
p.LongDescription = "This is a somewhat `longer' description of what this does"
p.LongDescription = "This is a somewhat `longer' description of what this does.\nWith multiple lines."
p.AddGroup("Application Options", "The application options", &opts)

for _, cmd := range p.Commands() {
Expand Down Expand Up @@ -244,7 +244,8 @@ TestMan \- Test manpage generation
.SH SYNOPSIS
\fBTestMan\fP [OPTIONS]
.SH DESCRIPTION
This is a somewhat \fBlonger\fP description of what this does
This is a somewhat \fBlonger\fP description of what this does.
With multiple lines.
.SH OPTIONS
.SS Application Options
The application options
Expand Down

0 comments on commit 59f46c2

Please sign in to comment.