diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-03-11 10:12:20 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-03-11 10:20:59 +0100 |
commit | d734d87b28ccbf2a4a4eb19a28285b5dea782105 (patch) | |
tree | 854c7b98bfee26268436eedf10a054a2e93becea /src/util.h | |
parent | 45b7dc2c25a5e977cc45c483d6dd6094ceb2e7a8 (diff) | |
parent | f75470794bd344ec25e1a540637c675e7f2ad6b0 (diff) | |
download | bitcoin-d734d87b28ccbf2a4a4eb19a28285b5dea782105.tar.xz |
Merge pull request #5749
f754707 Fix - bitcoin-qt usage message (Luca Venturini)
1fdb9fa Help messages correctly formatted (79 chars) (Luca Venturini)
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 4d0cb7136e..9b5a4153dd 100644 --- a/src/util.h +++ b/src/util.h @@ -162,6 +162,23 @@ bool SoftSetArg(const std::string& strArg, const std::string& strValue); */ bool SoftSetBoolArg(const std::string& strArg, bool fValue); +/** + * Format a string to be used as group of options in help messages + * + * @param message Group name (e.g. "RPC server options:") + * @return the formatted string + */ +std::string HelpMessageGroup(const std::string& message); + +/** + * Format a string to be used as option description in help messages + * + * @param option Option message (e.g. "-rpcuser=<user>") + * @param message Option description (e.g. "Username for JSON-RPC connections") + * @return the formatted string + */ +std::string HelpMessageOpt(const std::string& option, const std::string& message); + void SetThreadPriority(int nPriority); void RenameThread(const char* name); |