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.
29 lines
639 B
29 lines
639 B
#!/usr/bin/env node
|
|
|
|
var _ = require('lodash');
|
|
var program = require('commander');
|
|
var common = require('./common');
|
|
var ClientLib = require('../lib/clientlib.js');
|
|
|
|
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 cli = new ClientLib({
|
|
filename: program.config
|
|
});
|
|
|
|
cli.addresses(function(err, x) {
|
|
common.die(err);
|
|
|
|
console.log('* Addresses:');
|
|
_.each(x, function(a){
|
|
console.log(' ', a.address);
|
|
});
|
|
|
|
if (program.verbose)
|
|
console.log('* Raw Server Response:\n', x); //TODO
|
|
});
|
|
|