cli: update help command for daemon
This commit is contained in:
parent
7b0f254879
commit
de8b314561
@ -15,8 +15,7 @@ function main(servicesPath, additionalServices) {
|
|||||||
program
|
program
|
||||||
.version(version)
|
.version(version)
|
||||||
.description('Start the current node')
|
.description('Start the current node')
|
||||||
.option('-c, --config <dir>', 'Specify the directory with Bitcore Node configuration')
|
.option('-c, --config <dir>', 'Specify the directory with Bitcore Node configuration');
|
||||||
.option('-d, --daemon', 'Make bitcore a daemon (running in the background)');
|
|
||||||
|
|
||||||
program.parse(process.argv);
|
program.parse(process.argv);
|
||||||
|
|
||||||
@ -29,9 +28,6 @@ function main(servicesPath, additionalServices) {
|
|||||||
additionalServices: additionalServices
|
additionalServices: additionalServices
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(program.daemon) {
|
|
||||||
configInfo.config.daemon = true;
|
|
||||||
}
|
|
||||||
if (servicesPath) {
|
if (servicesPath) {
|
||||||
configInfo.servicesPath = servicesPath;
|
configInfo.servicesPath = servicesPath;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,6 @@ function main(servicesPath, additionalServices) {
|
|||||||
.command('start')
|
.command('start')
|
||||||
.description('Start the current node')
|
.description('Start the current node')
|
||||||
.option('-c, --config <dir>', 'Specify the directory with Bitcore Node configuration')
|
.option('-c, --config <dir>', 'Specify the directory with Bitcore Node configuration')
|
||||||
.option('-d, --daemon', 'Make bitcore-node a daemon (running in the background)')
|
|
||||||
.action(function(cmd){
|
.action(function(cmd){
|
||||||
if (cmd.config) {
|
if (cmd.config) {
|
||||||
cmd.config = path.resolve(process.cwd(), cmd.config);
|
cmd.config = path.resolve(process.cwd(), cmd.config);
|
||||||
@ -61,9 +60,6 @@ function main(servicesPath, additionalServices) {
|
|||||||
additionalServices: additionalServices
|
additionalServices: additionalServices
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(cmd.daemon) {
|
|
||||||
configInfo.config.daemon = true;
|
|
||||||
}
|
|
||||||
if (servicesPath) {
|
if (servicesPath) {
|
||||||
configInfo.servicesPath = servicesPath;
|
configInfo.servicesPath = servicesPath;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user