Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
For example, invoking bitcoin-qt -server=1 foo -regtest
on a fresh install will run mainnet
instead of the expected regtest
.
Expected behaviour
I would expect it to do one of the following:
- Run
regtest
- Warn me that my arguments contained a “command” and any subsequent options were ignored
- Exit with an error message
The problem is that ArgsManager::ParseParameters
interprets any non-hypen (’-’ or ‘–’) arguments as “commands”, with later arguments being assigned to that command.
This is not an issue with bitcoind
since it has additional logic to detect “loose” commands and refuses to start:
Steps to reproduce
Invoke bitcoin-qt foo -regtest
on a fresh install
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@d6ee03507f39
Operating system and version
MacOS Ventura 13.5
Machine specifications
No response