|
|
@ -3,12 +3,9 @@ |
|
|
|
var program = require('commander'); |
|
|
|
var Client = require('../lib/client'); |
|
|
|
var utils = require('./cli-utils'); |
|
|
|
program = utils.configureCommander(program); |
|
|
|
|
|
|
|
program |
|
|
|
.version('0.0.1') |
|
|
|
.option('-c, --config [file]', 'Wallet config filename') |
|
|
|
.option('-h, --host [host]', 'Bitcore Wallet Service URL (eg: http://localhost:3001/copay/api') |
|
|
|
.option('-v, --verbose', 'be verbose') |
|
|
|
.usage('[options] <address> <amount> [note]') |
|
|
|
.description('Create a proposal for sending bitcoins to a destination address.\n The amount can be specified in bit, btc or sat (the default).'); |
|
|
|
|
|
|
@ -19,7 +16,6 @@ program.on('--help', function(){ |
|
|
|
console.log(' $ bit-send mgWeRvUC6d1LRPKtdDbvYEpaUEmApS4XrY 0.2btc "dinner with friends"'); |
|
|
|
console.log(''); |
|
|
|
}); |
|
|
|
|
|
|
|
program.parse(process.argv); |
|
|
|
|
|
|
|
var args = program.args; |
|
|
|