Exception thrown when an invalid option is passed.
Inherits gears::optparse::error.
|
std::string | program_name |
|
std::string | option_name |
|
std::string | error_string |
|
Definition at line 63 of file error.hpp.
gears::optparse::unrecognised_option::unrecognised_option |
( |
const std::string & |
name, |
|
|
const std::string & |
op |
|
) |
| |
|
inline |
Constructs an exception with the string "{name}: error: unrecognised option '{op}'"
.
- Parameters
-
name | The name of the program. |
op | The option passed. |
Definition at line 73 of file error.hpp.