remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/remix-simulator/bin/ethsim

30 lines
641 B

#!/usr/bin/env node
const program = require('commander')
const version = require('../package.json').version
program
.command('version')
.description("outputs version number")
.action(() => {
console.log(version)
process.exit(0)
})
program
.command('help')
.description("outputs usage information")
.action(() => {
program.help()
process.exit(0)
})
program
.option('-p, --port [port]', 'specify port')
.option('-b, --ip [host]', 'specify host')
.parse(process.argv)
const Server = require('../src/server')
const server = new Server()
server.start(program.host || '127.0.0.1', program.port || 8545)