aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-06-11 14:23:13 -0700
committerAndrew Chow <achow101-github@achow101.com>2018-06-12 14:33:35 -0700
commitc2dfbb4a97513557fe923b7810ea8639c320fefd (patch)
treed8cb0e73ee160938f7d5cead7b86ee25753a27b9 /src/util.h
parent7c32b414b6325743c99fed1208bc53ab0fa1996f (diff)
downloadbitcoin-c2dfbb4a97513557fe923b7810ea8639c320fefd.tar.xz
Add unavailable options to hidden options category
Options that are not available (but known in the source code) will cause an error if they are specified. Make these options "available" by adding them to the hidden options category to prevent conf files from failing when shared between binaries that have different options available.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index efd8a4bd9d..8094d72d6b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -264,6 +264,11 @@ public:
void AddArg(const std::string& name, const std::string& help, const bool debug_only, const OptionsCategory& cat);
/**
+ * Add many hidden arguments
+ */
+ void AddHiddenArgs(const std::vector<std::string>& args);
+
+ /**
* Clear available arguments
*/
void ClearArgs() { m_available_args.clear(); }