#include <LeoArg.hh>
Public Methods | |
| Setting ( int argc, char **argv, std::string long_option_switch, std::string short_option_switch ) | |
| Setting () | |
| void | add ( const Option& option ) |
| adds an new option to the option list. | |
| void | short_option_string ( bool short_os ) |
| enable/disable the short option string. | |
| bool | short_option_string () const |
| returns true if short option string parsing is enabled. | |
Public Attributes | |
| int | argc |
| char** | argv |
| std::string | long_option_switch |
| the long option switch, eg.: "--". | |
| std::string | short_option_switch |
| the short option switch, eg.: "-". | |
| OptionList | option_list |
| the list of options. | |
| bool | sos |
| true of short option string enabled. | |
|
|
|
|
|
|
|
|
adds an new option to the option list.
|
|
|
returns true if short option string parsing is enabled.
|
|
|
enable/disable the short option string.
|
|
|
|
|
|
|
|
|
the long option switch, eg.: "--".
|
|
|
the list of options.
|
|
|
the short option switch, eg.: "-".
|
|
|
true of short option string enabled.
|
LeoArg (C) under the terms of the
GPL
by
King Leo (Martin Oberzalek)