lbcd/cmd/btcctl
Dave Collins d3aebcaed3 btcctl: Support - argument to read from stdin.
This commit modifies the argument handling for btcctl to treat a
parameter that is a single dash as an indicator to read that paramter from
stdin instead.

This change allows commands, such as the submitblock, to accept data piped
from stdin for any parameter.  This, in turn, allows large arguments, such
as blocks, which can often be too big for a single argument due to
Operating System limitations to be submitted by putting them into a file
and redirecting stdin.

For example:

btcctl submitblock - <block.hex
cat block.hex | btcctl submitblock -

btcctl sendrawtransaction - <tx.hex
cat tx.hex | btcctl sendrawtransaction -
2015-03-13 11:15:26 -05:00
..
btcctl.go btcctl: Support - argument to read from stdin. 2015-03-13 11:15:26 -05:00
config.go btcctl: Support - argument to read from stdin. 2015-03-13 11:15:26 -05:00
httpclient.go Rewrite btcctl to use the new features of btcjson. 2015-02-25 16:03:31 -06:00
version.go Prepare for release 0.10.0-beta. 2015-03-01 20:18:11 -06:00