mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Introduce (and use) an IsArgSet accessor method
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user