aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-03-11 10:12:20 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-03-11 10:20:59 +0100
commitd734d87b28ccbf2a4a4eb19a28285b5dea782105 (patch)
tree854c7b98bfee26268436eedf10a054a2e93becea /src/util.h
parent45b7dc2c25a5e977cc45c483d6dd6094ceb2e7a8 (diff)
parentf75470794bd344ec25e1a540637c675e7f2ad6b0 (diff)
downloadbitcoin-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.h17
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);