ArgsManager::SoftSetBoolArg

Set a boolean argument if it doesn't already have a value

Synopsis

Declared in <common/args.h>

[[requires_capability(0x7f2e381adea8)]]
bool
SoftSetBoolArg(
    std::string const& strArg,
    bool fValue);

Return Value

true if argument gets set, false if it already had a value

Parameters

NameDescription
strArgArgument to set (e.g. "-foo")
fValueValue (e.g. false)