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.
18 lines
460 B
18 lines
460 B
#!/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('-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);
|
|
});
|
|
|