All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::optparse::option_takes_no_value Class Reference

Exception thrown when an option is given an explicit value when not needed.

Inherits gears::optparse::error.

Public Member Functions

 option_takes_no_value (const std::string &name, const std::string &op)
 Constructs an exception. More...
 

Public Attributes

std::string program_name
 
std::string option_name
 
std::string error_string
 

Detailed Description

Definition at line 124 of file error.hpp.

Constructor & Destructor Documentation

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
nameThe name of the program.
opThe option passed.

Definition at line 134 of file error.hpp.