Fixes #741
Starting bitcoin-qt with non-hyphen ("-") arguments causes it to silently ignore any later valid options. For instance, invoking bitcoin-qt -server=1 foo -regtest
on a fresh install will run mainnet
instead of regtest
.
This change makes the client exit with an error message if any such “loose” arguments are encountered. This mirrors how bitcoind
handles it:
However, BIP-21 bitcoin:
payment URIs are still allowed, but only if they’re not followed by any additional options.