We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be78797 commit a1b5041Copy full SHA for a1b5041
bin/pm2
@@ -192,14 +192,17 @@ commander.command('kill')
192
commander.command('*')
193
.action(function() {
194
console.log(PREFIX_MSG + '\nCommand not found');
195
- badArguments();
+ commander.outputHelp();
196
+ process.exit(ERROR_EXIT);
197
});
198
199
//
200
// Display help
201
202
if (process.argv.length == 2) {
203
+ commander.parse(process.argv);
204
205
206
}
207
208
@@ -558,11 +561,6 @@ function speedList() {
558
561
559
562
560
563
-function badArguments() {
- commander.parse(process.argv).outputHelp();
- process.exit(ERROR_EXIT);
564
-}
565
-
566
567
// Resolving path, seing if default ...
568
0 commit comments