aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-11-29 17:51:30 -0800
committerMatt Corallo <git@bluematt.me>2016-12-23 21:30:16 -0500
commit0cf86a6678413aa03e765a7133f048df4001ff4c (patch)
tree10846a31ea17a64d66a77f15acc182aeeea43861 /src/util.h
parent2b5f085ad11b4b354f48d77e66698fa386c8abbd (diff)
downloadbitcoin-0cf86a6678413aa03e765a7133f048df4001ff4c.tar.xz
Introduce (and use) an IsArgSet accessor method
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 5d1d80d2df..aff4c3271f 100644
--- a/src/util.h
+++ b/src/util.h
@@ -124,6 +124,14 @@ inline bool IsSwitchChar(char c)
}
/**
+ * Return true if the given argument has been manually set
+ *
+ * @param strArg Argument to get (e.g. "-foo")
+ * @return true if the argument has been set
+ */
+bool IsArgSet(const std::string& strArg);
+
+/**
* Return string argument or default value
*
* @param strArg Argument to get (e.g. "-foo")