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.

25 lines
608 B

10 years ago
#!/usr/bin/env node
var program = require('commander');
var CliLib = require('../lib/clilib.js');
10 years ago
var common = require('./common');
program
.version('0.0.1')
.option('-c,--config [file]', 'Wallet config filename')
10 years ago
.option('-v,--verbose', 'be verbose')
10 years ago
.parse(process.argv);
var args = program.args;
var cli = new CliLib({
filename: program.config
});
10 years ago
10 years ago
cli.status(function(err, x) {
10 years ago
common.die(err);
10 years ago
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.isTestnet ? 'testnet' : 'livenet', x.m, x.n, x.status);
10 years ago
10 years ago
if (program.verbose)
console.log('* Raw Server Response:\n', x); //TODO
});