|
|
| ArgumentParser (const vector< Usage > usages, const vector< string > arguments, const PositionalArgumentsRequired require_positional) |
| |
|
| ArgumentParser (const vector< Usage > usages, const vector< string > arguments, const string binary_directory, const string binary_name, const PositionalArgumentsRequired require_positional) |
| |
|
| ArgumentParser (const Usage usage, const int argc, const char *const argv[], const PositionalArgumentsRequired require_positional=PositionalArgumentsRequired::Required) |
| |
|
| ArgumentParser (const vector< Usage > usages, const int argc, const char *const argv[], const PositionalArgumentsRequired require_positional=PositionalArgumentsRequired::Required) |
| |
|
| ArgumentParser (const ArgumentParser &rhs)=delete |
| |
|
| ArgumentParser (ArgumentParser &rhs)=delete |
| |
|
ArgumentParser & | operator= (const ArgumentParser &rhs)=delete |
| |
|
ArgumentParser & | operator= (ArgumentParser &rhs)=delete |
| |
| virtual Settings & | parse_args () |
| | Parse arguments that were given to constructor.
|
| |
|
string | cur_arg () |
| | Indicate positional arguments should all be used by now and error if not.
|
| |
|
string | get_args () |
| |
|
string | get_arg () noexcept |
| |
|
bool | help_requested () |
| |
|
void | mark_parsed (const string arg) |
| |
|
bool | was_parsed (const string arg) |
| |
|
string | format_args () |
| |
|
void | show_args () |
| |
|
void | log_args () |
| |
|
void | show_usage_and_exit (int exit_code) |
| |
|
void | show_usage_and_exit () |
| |
|
void | show_help_and_exit () |
| |
|
size_t | argc () const |
| |
|
|
| ArgumentParser (const vector< Usage > usages, const vector< string > arguments, const pair< string, string > binary, const PositionalArgumentsRequired require_positional) |
| |
|
bool | has_positional () const |
| | If any more positional arguments are available.
|
| |
|
string | get_positional () |
| | Get next positional argument.
|
| |
|
void | done_positional () |
| |
|
vector< string > & | args_expanded () |
| |
|
|
size_t | cur_arg_ {0} |
| |
|
size_t | skipped_args_ {0} |
| |
|
vector< string > | arguments_ {} |
| |
|
vector< string > | arguments_expanded_ {} |
| |
|
string | binary_directory_ {} |
| |
|
string | binary_name_ {} |
| |
|
|
vector< string > | positional_args_ {} |
| |
|
size_t | cur_positional_ {0} |
| |
|
PositionalArgumentsRequired | require_positional_ {} |
| |
|
bool | help_requested_ {false} |
| |
◆ parse_args()
| Settings & fs::settings::ArgumentParser::parse_args |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: