YesChief!
C++ argv parser
|
#include <yeschief.h>
Public Member Functions | |
OptionGroup (CLI *parent, std::string name) | |
template<typename T = bool> | |
auto | addOption (const std::string &name, const std::string &description, const OptionConfiguration &configuration={}) -> OptionGroup & |
Represents a group of options under the same namespace
|
explicit |
parent | Owner of this group |
name | Name of this group |
auto yeschief::OptionGroup::addOption | ( | const std::string & | name, |
const std::string & | description, | ||
const OptionConfiguration & | configuration = {} ) -> OptionGroup & |
Add an option to your group.
The name of the option can be written in 2 ways:
--name
--name
and -n
For the second way, the format should always be <long>,<short>
. For the long name you can have any length but the short name must be only 1 letter
name | Name of the option |
description | Description of the option |
configuration | Advanced configuration |