lbcd/cmd
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
..
addblock Update btcnet path import paths to new location. 2015-02-05 23:24:53 -06:00
btcctl btcctl: Support - argument to read from stdin. 2015-03-13 11:15:26 -05:00
dropafter Update btcnet path import paths to new location. 2015-02-05 23:24:53 -06:00
findcheckpoint Update btcnet path import paths to new location. 2015-02-05 23:24:53 -06:00
gencerts Move all utilities into the cmd directory. 2015-01-19 09:58:01 -06:00