Merge pull request #54 from tjanson/help-example

Don’t always display the --help text on start
pull/3094/head
yann300 6 years ago committed by GitHub
commit 50c54e6b80
  1. 6
      bin/remixd

@ -19,9 +19,9 @@ program
.option('-r, --rpc <cors-domains>', 'start rpc server. Values are CORS domain') .option('-r, --rpc <cors-domains>', 'start rpc server. Values are CORS domain')
.option('-rp, --rpc-port', 'rpc server port (default 8545)') .option('-rp, --rpc-port', 'rpc server port (default 8545)')
.option('--profiler', 'start profiler service') .option('--profiler', 'start profiler service')
.parse(process.argv) .on('--help', function(){
console.log('example: --dev-path /home/devchains/chain1 --mist --geth --frontend /home/frontend --frontend-port 8084 --auto-mine') console.log('\nExample:\n\n remixd --dev-path /home/devchains/chain1 --mist --geth --frontend /home/frontend --frontend-port 8084 --auto-mine')
program.outputHelp() }).parse(process.argv)
var killCallBack = [] var killCallBack = []

Loading…
Cancel
Save