2015-02-12 18:57:16 -08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
var program = require('commander');
|
2015-02-12 19:23:59 -08:00
|
|
|
var CliLib = require('../lib/clilib.js');
|
2015-02-12 18:57:16 -08:00
|
|
|
var common = require('./common');
|
|
|
|
|
|
|
|
program
|
|
|
|
.version('0.0.1')
|
|
|
|
.option('-c,--config [file]', 'Wallet config filename')
|
|
|
|
.parse(process.argv);
|
|
|
|
|
|
|
|
var args = program.args;
|
2015-02-12 19:23:59 -08:00
|
|
|
var cli = new CliLib({
|
|
|
|
filename: program.config
|
|
|
|
});
|
2015-02-12 18:57:16 -08:00
|
|
|
|
|
|
|
cli.status(function(err, xx) {
|
|
|
|
common.die(err);
|
|
|
|
console.log(' * Status:', xx);
|
|
|
|
});
|
|
|
|
|