@@ -18,16 +18,12 @@ describe("plugin-help", () => {
18
18
. parse ( [ "help" ] ) ;
19
19
expect ( msgs ) . toMatchInlineSnapshot ( `
20
20
[
21
- "[32mtest help[39m ",
22
- "Show help",
23
- undefined,
21
+ "[32mtest[39m ",
24
22
"[33mUSAGE:[39m",
25
- " test help [PARAMETERS] [FLAGS ]",
23
+ " test <SUBCOMMAND> [OPTIONS ]",
26
24
undefined,
27
- "[33mEXAMPLES:[39m",
28
- " test help Displays help of the cli",
29
- " test -h Displays help of the cli",
30
- " test help help Displays help of the help command",
25
+ "[33mCOMMANDS:[39m",
26
+ " [32mhelp [39mShow help",
31
27
]
32
28
` ) ;
33
29
msgs . length = 0 ;
@@ -54,16 +50,11 @@ describe("plugin-help", () => {
54
50
. parse ( [ "help" ] ) ;
55
51
expect ( msgs ) . toMatchInlineSnapshot ( `
56
52
[
57
- "[32m help[39m ",
58
- "Show help",
59
- undefined,
60
53
"[33mUSAGE:[39m",
61
- " help [PARAMETERS] [FLAGS ]",
54
+ " <CLI NAME> <SUBCOMMAND> [OPTIONS ]",
62
55
undefined,
63
- "[33mEXAMPLES:[39m",
64
- " help Displays help of the cli",
65
- " -h Displays help of the cli",
66
- " help help Displays help of the help command",
56
+ "[33mCOMMANDS:[39m",
57
+ " [32mhelp [39mShow help",
67
58
]
68
59
` ) ;
69
60
} ) ;
@@ -76,16 +67,14 @@ describe("plugin-help", () => {
76
67
. parse ( [ "help" ] ) ;
77
68
expect ( msgs ) . toMatchInlineSnapshot ( `
78
69
[
79
- "[32mfoo help [39m v1.0.0",
80
- "Show help ",
70
+ "[32mfoo[39m v1.0.0",
71
+ "foo cli ",
81
72
undefined,
82
73
"[33mUSAGE:[39m",
83
- " foo help [PARAMETERS] [FLAGS ]",
74
+ " foo <SUBCOMMAND> [OPTIONS ]",
84
75
undefined,
85
- "[33mEXAMPLES:[39m",
86
- " foo help Displays help of the cli",
87
- " foo -h Displays help of the cli",
88
- " foo help help Displays help of the help command",
76
+ "[33mCOMMANDS:[39m",
77
+ " [32mhelp [39mShow help",
89
78
]
90
79
` ) ;
91
80
} ) ;
0 commit comments