|
Fancy argparser
Single file argument parser for c++
|
Aggregate description of a named argument, for keyword-style construction. More...
#include <argparse.h>
Public Attributes | |
| std::string | shortName = "" |
| std::string | longName = "" |
| int | nargs = 1 |
| ArgTypeCast | type = ArgTypeCast::e_String |
| bool | required = true |
| std::string | help = "" |
Aggregate description of a named argument, for keyword-style construction.
Because it is a plain aggregate, C++20 designated initializers give a Python-like call site:
The same struct also works with ordinary aggregate init in C++11/14/17.
Definition at line 608 of file argparse.h.
| std::string ARGPARSE_NAMESPACE_NAME::NamedArgSpec::help = "" |
Definition at line 615 of file argparse.h.
| std::string ARGPARSE_NAMESPACE_NAME::NamedArgSpec::longName = "" |
Definition at line 611 of file argparse.h.
| int ARGPARSE_NAMESPACE_NAME::NamedArgSpec::nargs = 1 |
Definition at line 612 of file argparse.h.
| bool ARGPARSE_NAMESPACE_NAME::NamedArgSpec::required = true |
Definition at line 614 of file argparse.h.
| std::string ARGPARSE_NAMESPACE_NAME::NamedArgSpec::shortName = "" |
Definition at line 610 of file argparse.h.
| ArgTypeCast ARGPARSE_NAMESPACE_NAME::NamedArgSpec::type = ArgTypeCast::e_String |
Definition at line 613 of file argparse.h.