Short

Provides an alternative option name. This is mostly convenient on the command line.

The shortname will be added verbatim. This allows to provide multiple alternatives at once. Internally the struct member name and the short name will be simply concatenated with the vertical bar ('|').

struct Short {}

Members

Variables

shortname
string shortname;
Undocumented in source.

Examples

struct MyConfig
{
     @Short("v") @Desc("Print verbose messages.")
     bool verbose;
}

Allows the usage of ./myapp --verbose and ./myapp -v. Both will set the verbose member variable.

Meta