mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 22:00:34 +01:00
closes #5605
This commit is contained in:
5
nodebb
5
nodebb
@@ -403,6 +403,11 @@ var commands = {
|
||||
description: 'Activate a plugin for the next startup of NodeBB',
|
||||
usage: 'Usage: ' + './nodebb activate <plugin>'.yellow,
|
||||
handler: function () {
|
||||
var name = args._[1];
|
||||
if (!name) {
|
||||
process.stdout.write(commands.activate.usage + '\n');
|
||||
process.exit();
|
||||
}
|
||||
var arr = ['--activate=' + args._[1]].concat(process.argv.slice(4));
|
||||
fork(arr);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user