Skip to content

Commit c8d9c77

Browse files
committed
test(mangen): Add all flatten related tests from builder
Add all tests from tests/builder/help.rs to mangen, too. Signed-off-by: Paul Spooren <[email protected]>
1 parent 041656f commit c8d9c77

13 files changed

+653
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR <\fB\-\-parent\fR> [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent test\fR <\fB\-\-child\fR> [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBtest\fR <\fB\-\-child\fR> [\fB\-h\fR|\fB\-\-help\fR]
24+
test command
25+
.TP
26+
\fBhelp\fR
27+
Print this message or the help of the given subcommand(s)

Diff for: clap_mangen/tests/snapshots/flatten_basic.roff

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent test\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBtest\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
24+
test command
25+
.TP
26+
\fBhelp\fR
27+
Print this message or the help of the given subcommand(s)

Diff for: clap_mangen/tests/snapshots/flatten_help_cmd.roff

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent test\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
bar
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help (see a summary with \*(Aq\-h\*(Aq)
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBtest\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
24+
long some
25+
.TP
26+
\fBhelp\fR
27+
Print this message or the help of the given subcommand(s)
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent child1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent child2\fR [\fB\-\-child2\fR] [\fB\-h\fR|\fB\-\-help\fR]
12+
.br
13+
\fBparent child3\fR [\fB\-\-child3\fR] [\fB\-h\fR|\fB\-\-help\fR]
14+
.br
15+
\fBparent help\fR
16+
.SH DESCRIPTION
17+
parent command
18+
.SH OPTIONS
19+
.TP
20+
\fB\-\-parent\fR
21+
22+
.TP
23+
\fB\-h\fR, \fB\-\-help\fR
24+
Print help
25+
.SH SUBCOMMANDS
26+
.TP
27+
\fBchild1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
28+
child1 command
29+
.TP
30+
\fBchild2\fR [\fB\-\-child2\fR] [\fB\-h\fR|\fB\-\-help\fR]
31+
child2 command
32+
.TP
33+
\fBhelp\fR
34+
Print this message or the help of the given subcommand(s)
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent child1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent child2\fR [\fB\-\-child2\fR] [\fB\-h\fR|\fB\-\-help\fR]
12+
.br
13+
\fBparent child3\fR [\fB\-\-child3\fR] [\fB\-h\fR|\fB\-\-help\fR]
14+
.br
15+
\fBparent help\fR
16+
.SH DESCRIPTION
17+
parent command
18+
.SH OPTIONS
19+
.TP
20+
\fB\-\-parent\fR
21+
22+
.TP
23+
\fB\-h\fR, \fB\-\-help\fR
24+
Print help
25+
.SH SUBCOMMANDS
26+
.TP
27+
\fBchild1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
28+
child1 command
29+
.TP
30+
\fBchild2\fR [\fB\-\-child2\fR] [\fB\-h\fR|\fB\-\-help\fR]
31+
child2 command
32+
.TP
33+
\fBchild3\fR [\fB\-\-child3\fR] [\fB\-h\fR|\fB\-\-help\fR]
34+
child3 command
35+
.TP
36+
\fBhelp\fR
37+
Print this message or the help of the given subcommand(s)

Diff for: clap_mangen/tests/snapshots/flatten_recursive.roff

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent child1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent child2\fR [\fB\-\-child2\fR] [\fB\-h\fR|\fB\-\-help\fR]
12+
.br
13+
\fBparent child3\fR [\fB\-\-child3\fR] [\fB\-h\fR|\fB\-\-help\fR]
14+
.br
15+
\fBparent help\fR
16+
.SH DESCRIPTION
17+
parent command
18+
.SH OPTIONS
19+
.TP
20+
\fB\-\-parent\fR
21+
22+
.TP
23+
\fB\-h\fR, \fB\-\-help\fR
24+
Print help
25+
.SH SUBCOMMANDS
26+
.TP
27+
\fBchild1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
28+
child1 command
29+
.TP
30+
\fBchild2\fR [\fB\-\-child2\fR] [\fB\-h\fR|\fB\-\-help\fR]
31+
child2 command
32+
.TP
33+
\fBhelp\fR
34+
Print this message or the help of the given subcommand(s)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent child1\fR [\fB\-\-child1\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBhelp\fR
24+
Print this message or the help of the given subcommand(s)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent test\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBtest\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
24+
test command
25+
.TP
26+
\fBhelp\fR
27+
Print this message or the help of the given subcommand(s)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent test\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBtest\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
24+
test command
25+
.TP
26+
\fBhelp\fR
27+
Print this message or the help of the given subcommand(s)

Diff for: clap_mangen/tests/snapshots/flatten_with_global.roff

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent test\fR [\fB\-\-child\fR] [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
10+
.br
11+
\fBparent help\fR
12+
.SH DESCRIPTION
13+
parent command
14+
.SH OPTIONS
15+
.TP
16+
\fB\-\-parent\fR
17+
18+
.TP
19+
\fB\-h\fR, \fB\-\-help\fR
20+
Print help
21+
.SH SUBCOMMANDS
22+
.TP
23+
\fBtest\fR [\fB\-\-child\fR] [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
24+
test command
25+
.TP
26+
\fBhelp\fR
27+
Print this message or the help of the given subcommand(s)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent test\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.br
9+
\fBparent help\fR
10+
.SH DESCRIPTION
11+
parent command
12+
.SH OPTIONS
13+
.TP
14+
\fB\-\-parent\fR
15+
16+
.TP
17+
\fB\-h\fR, \fB\-\-help\fR
18+
Print help
19+
.SH SUBCOMMANDS
20+
.TP
21+
\fBtest\fR [\fB\-\-child\fR] [\fB\-h\fR|\fB\-\-help\fR]
22+
test command
23+
.TP
24+
\fBhelp\fR
25+
Print this message or the help of the given subcommand(s)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.ie \n(.g .ds Aq \(aq
2+
.el .ds Aq '
3+
.TH parent 1 "parent "
4+
.SH NAME
5+
parent \- parent command
6+
.SH SYNOPSIS
7+
\fBparent\fR [\fB\-\-parent\fR] [\fB\-h\fR|\fB\-\-help\fR]
8+
.SH DESCRIPTION
9+
parent command
10+
.SH OPTIONS
11+
.TP
12+
\fB\-\-parent\fR
13+
14+
.TP
15+
\fB\-h\fR, \fB\-\-help\fR
16+
Print help

0 commit comments

Comments
 (0)