Currently calling help on a wallet RPC method will either return help: unknown command: getnewaddress or the actual help. This runtime dependency of the help is a bug that complicates any tool that relies on documentation. Also, the code that enables the bug is overly complicated and confusing.
The fix is split into two commits:
- First, a commit that can be reviewed with the --color-moved=dimmed-zebraoption and tested with the included test.
- Second, a commit that removes the complicated and confusing code.