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