Fix running ./nodebb with no arguments doing nothing

This commit is contained in:
Peter Jaszkowiak
2018-01-14 21:33:30 -07:00
parent 0929fd2a11
commit 9c1faa7643

View File

@@ -293,16 +293,12 @@ program
}
});
program
.command('*', {}, {
noHelp: true,
})
.action(function () {
program.help();
});
require('./colors');
if (process.argv.length === 2) {
program.help();
}
program.executables = false;
program.parse(process.argv);