ArgsManager::AddArg

Add argument

Synopsis

Declared in <common/args.h>

[[requires_capability(0x7f2e381ae3a8)]]
void
AddArg(
    std::string const& name,
    std::string const& help,
    unsigned int flags,
    OptionsCategory const& cat);

Parameters

NameDescription
nameArgument name including any parameter (e.g. "-foo=<n>").
helpHelp text describing the argument.
flagsFlags controlling validation and interpretation.
catHelp category the argument belongs to.