|
optionmm::default_error_handler Struct Reference#include <optionmm/command_line.hh>
List of all members.
Detailed Description
The default error handler for the command line.
Client programs can define similar structures or classes, and pass them as a template parameter to basic_command_line.
Definition at line 50 of file command_line.hh.
|
Public Member Functions |
bool | on_unknown (char c, const std::string &progname) |
bool | on_unknown (const std::string &str, const std::string &progname) |
template<typename Option> bool | on_missing_argument (Option &o, bool is_short, const std::string &progname) |
template<typename Option> bool | on_bad_argument (Option &o, bool is_short, const std::string &progname) |
Member Function Documentation
template<typename Option> |
bool optionmm::default_error_handler::on_bad_argument |
( |
Option & |
o, |
|
|
bool |
is_short, |
|
|
const std::string & |
progname |
|
) |
[inline] |
|
|
Handle a bad handling of an argument to an option.
Short version. - Parameters:
-
o | The option |
is_short | Whether the short form was given or not. |
progname | The program invocation name. |
- Returns:
- true if basic_command_line<>::process should fail, false if it should go on.
Definition at line 101 of file command_line.hh. |
template<typename Option> |
bool optionmm::default_error_handler::on_missing_argument |
( |
Option & |
o, |
|
|
bool |
is_short, |
|
|
const std::string & |
progname |
|
) |
[inline] |
|
|
Handle a bad handling of an argument to an option.
Short version. - Parameters:
-
o | The option |
is_short | Whether the short form was given or not. |
progname | The program invocation name. |
- Returns:
- true if basic_command_line<>::process should fail, false if it should go on.
Definition at line 82 of file command_line.hh. |
bool optionmm::default_error_handler::on_unknown |
( |
const std::string & |
str, |
|
|
const std::string & |
progname |
|
) |
[inline] |
|
bool optionmm::default_error_handler::on_unknown |
( |
char |
c, |
|
|
const std::string & |
progname |
|
) |
[inline] |
|
The documentation for this struct was generated from the following file:
|