This is very much a matter of personal taste, but I think this changeset makes command line arguments help text code clearer.
A bunch of changes:
- order groupings alphabetically
- order arguments alphabetically within groupings
- make
HelpMessageOpt()responsible for whether to print debug arguments. This is done by passing aHELP_MESSAGE_FILTER, which will result in the help text being printed only if-debug-helpis set - move server-specific option into bitcoind.cpp, and remove the
modeargument fromHelpMessage() - move the calls to
GetWalletHelpString()into bitcoind.cpp and qt (removes one dependency on bitcoin_wallet from bitcoin_server).
the help message filter is implemented as a bitfield, so could be updated to include other filters (eg HELP_MESSAGE_FILTER_NOT_WIN32) and remove the preprocessor conditionals from HelpMessage()