Introduce (and use) an IsArgSet accessor method

This commit is contained in:
Matt Corallo
2016-11-29 17:51:30 -08:00
parent 2b5f085ad1
commit 0cf86a6678
12 changed files with 44 additions and 31 deletions

View File

@@ -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
*