Merge #11710: cli: Reject arguments to -getinfo
commit938863965f14ce7ab0780dd9197c6e13f2093d87
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 18 Nov 2017 11:05:27 +0000 (18 12:05 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Sat, 18 Nov 2017 11:05:31 +0000 (18 12:05 +0100)
tree3e9418d481ad693fea5586599e755ccaecacc30b
parent142913296f006650127b7a2ef03954e46bfd585c
parentdcfef277b4920552f438c110390a5de93892a8de
Merge #11710: cli: Reject arguments to -getinfo

dcfef27 cli: Reject arguments to -getinfo (Wladimir J. van der Laan)

Pull request description:

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

      bitcoin-cli -getinfo getbalance

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

  To avoid this, throw an error if the user provides arguments to
  `-getinfo`.

Tree-SHA512: 3603e8fa852b884d1dd3b7462db40b092fe8b3390fd4384b4ee330315d797aff711e9f62990012fd4b5a55c8678734ba8497a5488a09ee6b65cf8a99017d6eb4