mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
Fix running ./nodebb with no arguments doing nothing
This commit is contained in:
@@ -293,16 +293,12 @@ program
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
program
|
|
||||||
.command('*', {}, {
|
|
||||||
noHelp: true,
|
|
||||||
})
|
|
||||||
.action(function () {
|
|
||||||
program.help();
|
|
||||||
});
|
|
||||||
|
|
||||||
require('./colors');
|
require('./colors');
|
||||||
|
|
||||||
|
if (process.argv.length === 2) {
|
||||||
|
program.help();
|
||||||
|
}
|
||||||
|
|
||||||
program.executables = false;
|
program.executables = false;
|
||||||
|
|
||||||
program.parse(process.argv);
|
program.parse(process.argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user