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.
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
var program = require('commander');
|
|
|
|
var CliLib = require('../lib/clilib.js');
|
|
|
|
var common = require('./common');
|
|
|
|
|
|
|
|
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 CliLib({
|
|
|
|
filename: program.config
|
|
|
|
});
|
|
|
|
|
|
|
|
cli.status(function(err, x) {
|
|
|
|
common.die(err);
|
|
|
|
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.isTestnet ? 'testnet' : 'livenet', x.m, x.n, x.status);
|
|
|
|
|
|
|
|
if (program.verbose)
|
|
|
|
console.log('* Raw Server Response:\n', x); //TODO
|
|
|
|
});
|