a helper for vul_arg::parse.
More...
#include <vul_arg.h>
a helper for vul_arg::parse.
Users might need it if they wish to parse several command lines.
Definition at line 208 of file vul_arg.h.
◆ autonomy
◆ vul_arg_info_list() [1/2]
◆ ~vul_arg_info_list()
| vul_arg_info_list::~vul_arg_info_list |
( |
| ) |
|
|
default |
◆ vul_arg_info_list() [2/2]
◆ add()
Add an argument to the list.
Definition at line 167 of file vul_arg.cxx.
◆ display_help()
| void vul_arg_info_list::display_help |
( |
char const * |
progname = nullptr | ) |
|
Display help about each option in the arg list.
Note that this function does not exit at the end.
Definition at line 187 of file vul_arg.cxx.
◆ include()
Append another list. The other list is not copied, just pointed to.
Definition at line 177 of file vul_arg.cxx.
◆ operator=()
◆ parse()
| void vul_arg_info_list::parse |
( |
int & |
argc, |
|
|
char **& |
argv, |
|
|
bool |
warn_about_unrecognized_arguments |
|
) |
| |
Parse the command line, using the current list of args.
Remove all recognised arguments from the command line by modifying argc and argv.
Definition at line 263 of file vul_arg.cxx.
◆ set_help_description()
| void vul_arg_info_list::set_help_description |
( |
char const * |
str | ) |
|
|
inline |
Set the (possibly long) text used to document the command.
It is displayed at the end of the help page.
Definition at line 234 of file vul_arg.h.
◆ set_help_option()
| void vul_arg_info_list::set_help_option |
( |
char const * |
str | ) |
|
Change the help operator (defaults to -?).
Definition at line 152 of file vul_arg.cxx.
◆ set_help_precis()
| void vul_arg_info_list::set_help_precis |
( |
char const * |
str | ) |
|
|
inline |
Set the (short) text used to describe the command.
Definition at line 230 of file vul_arg.h.
◆ verbose()
| void vul_arg_info_list::verbose |
( |
bool |
on | ) |
|
|
inline |
◆ args_
◆ autonomy_
◆ command_precis_
| std::string vul_arg_info_list::command_precis_ |
◆ description_
| std::string vul_arg_info_list::description_ |
◆ help_
| std::string vul_arg_info_list::help_ |
◆ verbose_
| bool vul_arg_info_list::verbose_ |
The documentation for this class was generated from the following files: