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.
23 lines
494 B
23 lines
494 B
#!/usr/bin/env node
|
|
|
|
var _ = require('lodash');
|
|
var program = require('commander');
|
|
var utils = require('./cli-utils');
|
|
var Client = require('../lib/client');
|
|
program = utils.configureCommander(program);
|
|
|
|
program
|
|
.parse(process.argv);
|
|
|
|
var args = program.args;
|
|
var client = utils.getClient(program);
|
|
client.getMainAddresses({
|
|
doNotVerify: true
|
|
}, function(err, x) {
|
|
utils.die(err);
|
|
|
|
console.log('* Addresses:');
|
|
_.each(x, function(a) {
|
|
console.log(' ', a.address);
|
|
});
|
|
});
|
|
|