@@ -6,46 +6,22 @@ const exec = pify(childProcess.exec);
66
77
88test ( 'shows help on --help' , async ( t ) => {
9- const stdout = await exec ( '.. /bin/mern.js --help' ) ;
9+ const stdout = await exec ( './bin/mern.js --help' ) ;
1010 t . is ( stdout . trim ( ) , `Usage: mern [options] [command]
1111
12-
13- Commands:
14-
15- init [name] Initialize a MERN project.
16- list List MERN variants
17- search [term] Search for MERN variant
18- info [term] View details of a MERN variant
19- help [cmd] display help for [cmd]
20-
2112 Initialize a MERN powered project
2213
2314 Options:
2415
25- -h, --help output usage information
2616 -V, --version output the version number
27- -v, --version check version` ) ;
28- } ) ;
29-
30-
31- test ( 'shows help on --h' , async ( t ) => {
32- const stdout = await exec ( '../bin/mern.js --help' ) ;
33- t . is ( stdout . trim ( ) , `Usage: mern [options] [command]
34-
17+ -v, --version check version
18+ -h, --help output usage information
3519
3620 Commands:
3721
3822 init [name] Initialize a MERN project.
3923 list List MERN variants
4024 search [term] Search for MERN variant
4125 info [term] View details of a MERN variant
42- help [cmd] display help for [cmd]
43-
44- Initialize a MERN powered project
45-
46- Options:
47-
48- -h, --help output usage information
49- -V, --version output the version number
50- -v, --version check version` ) ;
26+ help [cmd] display help for [cmd]` ) ;
5127} ) ;
0 commit comments