#!/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; utils.getClient(program, function (client) { client.getMainAddresses({ doNotVerify: true }, function(err, x) { utils.die(err); if (x.length > 0) { console.log('* Addresses:'); _.each(x, function(a) { console.log(' ', a.address); }); } else { console.log('* No addresses.'); } }); });