Skip to content

Commit 32e1c80

Browse files
committed
Add multi-paragraph help prologue to tests
1 parent e172ae0 commit 32e1c80

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/test/kotlin/com/xenomachina/argparser/ArgParserTest.kt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,12 @@ class HelpTest : Test({
974974
Args(parserOf("--help",
975975
helpFormatter = DefaultHelpFormatter(
976976
prologue = """
977-
This is the prologue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam malesuada maximus eros. Fusce luctus risus eget quam consectetur, eu auctor est ullamcorper. Maecenas eget suscipit dui, sed sodales erat. Phasellus.
977+
This is the prologue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam
978+
malesuada maximus eros. Fusce luctus risus eget quam consectetur, eu auctor est ullamcorper.
979+
Maecenas eget suscipit dui, sed sodales erat. Phasellus.
980+
981+
This is the second paragraph of the prologue. I don't have anything else to say, but I'd
982+
like there to be enough text that it wraps to the next line.
978983
""",
979984
epilogue = """
980985
This is the epilogue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel tortor nunc. Sed eu massa sed turpis auctor faucibus. Donec vel pellentesque tortor. Ut ultrices tempus lectus fermentum vestibulum. Phasellus.
@@ -992,6 +997,10 @@ Fusce luctus risus eget quam consectetur, eu auctor est
992997
ullamcorper. Maecenas eget suscipit dui, sed sodales erat.
993998
Phasellus.
994999
1000+
This is the second paragraph of the prologue. I don't have
1001+
anything else to say, but I'd like there to be enough text
1002+
that it wraps to the next line.
1003+
9951004
9961005
required arguments:
9971006
-o OUTPUT, directory in which all output should
@@ -1035,6 +1044,10 @@ Fusce luctus risus eget quam consectetur, eu auctor est
10351044
ullamcorper. Maecenas eget suscipit dui, sed sodales erat.
10361045
Phasellus.
10371046
1047+
This is the second paragraph of the prologue. I don't have
1048+
anything else to say, but I'd like there to be enough text
1049+
that it wraps to the next line.
1050+
10381051
10391052
required arguments:
10401053
-o OUTPUT, directory in which all output should
@@ -1073,6 +1086,8 @@ usage: program_name [-h] [-n] [-I INCLUDE]... -o OUTPUT [-v]... SOURCE... DEST
10731086
10741087
This is the prologue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam malesuada maximus eros. Fusce luctus risus eget quam consectetur, eu auctor est ullamcorper. Maecenas eget suscipit dui, sed sodales erat. Phasellus.
10751088
1089+
This is the second paragraph of the prologue. I don't have anything else to say, but I'd like there to be enough text that it wraps to the next line.
1090+
10761091
10771092
required arguments:
10781093
-o OUTPUT, --output OUTPUT directory in which all output should be generated

0 commit comments

Comments
 (0)