Exception thrown when an option is given an explicit value when not needed.
Inherits gears::optparse::error.
|
std::string | program_name |
|
std::string | option_name |
|
std::string | error_string |
|
Definition at line 124 of file error.hpp.
gears::optparse::option_takes_no_value::option_takes_no_value |
( |
const std::string & |
name, |
|
|
const std::string & |
op |
|
) |
| |
|
inline |
Constructs an exception with the string "{name}: error: option '{op}' does not take a value"
.
- Parameters
-
name | The name of the program. |
op | The option passed. |
Definition at line 134 of file error.hpp.