#!/usr/bin/env node var program = require('commander'); var Client = require('../lib/client'); var utils = require('./cli-utils'); program .version('0.0.1') .option('-c, --config [file]', 'Wallet config filename') .option('-h, --host [host]', 'Bitcore Wallet Service URL (eg: http://localhost:3001/copay/api') .option('-v, --verbose', 'be verbose') .parse(process.argv); var args = program.args; var client = utils.getClient(program); client.createAddress(function(err, x) { utils.die(err); console.log('* New Address %s ', x.address); });