Node.js based forum software built for the modern web
Fix running `./nodebb` with no arguments doing nothing
Peter Jaszkowiak9c1faa7643b4
diff --git a/src/cli/index.js b/src/cli/index.jsindex 933f5a0b1c..76ceb5b071 100644--- a/src/cli/index.js+++ b/src/cli/index.js@@ -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);