Added a functional test which parses all the RPC help commands then automatically generates the bitcoin-cli bash-completion file and makes sure that the original file matches the newly generated one.
In order to get the RPC help commands in the correct format needed for the test, I added the “format” RPC command.
Test using python3 test/functional/tool_cli_completion.py --overwrite