cli: Reject arguments to -getinfo
commitdcfef277b4920552f438c110390a5de93892a8de
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 17 Nov 2017 13:11:02 +0000 (17 14:11 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Fri, 17 Nov 2017 14:11:50 +0000 (17 15:11 +0100)
tree8083a2d49b45dbd081862a8fd0fad7318cd07ecc
parent1f7695b4194bd1d3872c9e91ad9ee271670894ea
cli: Reject arguments to -getinfo

Currently it's possible to accidentally type e.g.

    bitcoin-cli -getinfo getbalance

and get an answer which can be confusing; the trialing arguments are
just ignored.

To avoid this, throw an error if the user provides arguments to
`-getinfo`.
src/bitcoin-cli.cpp
test/functional/bitcoin_cli.py