From 0cf86a6678413aa03e765a7133f048df4001ff4c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 29 Nov 2016 17:51:30 -0800 Subject: Introduce (and use) an IsArgSet accessor method --- src/util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 5d1d80d2df..aff4c3271f 100644 --- a/src/util.h +++ b/src/util.h @@ -123,6 +123,14 @@ inline bool IsSwitchChar(char c) #endif } +/** + * 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 * -- cgit v1.2.3