ArgsManager::SoftSetArg

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

Synopsis

Declared in <common/args.h>

[[requires_capability(0x7f2e381add68)]]
bool
SoftSetArg(
    std::string const& strArg,
    std::string const& strValue);

Return Value

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

Parameters

NameDescription
strArgArgument to set (e.g. "-foo")
strValueValue (e.g. "1")