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

Exception thrown when a required option is missing.

Inherits gears::optparse::error.

Public Member Functions

 missing_required_option (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 81 of file error.hpp.

Constructor & Destructor Documentation

gears::optparse::missing_required_option::missing_required_option ( const std::string &  name,
const std::string &  op 
)
inline

Constructs an exception with the string "{name}: error: missing required option '{op}'".

Parameters
nameThe name of the program.
opThe option passed.

Definition at line 91 of file error.hpp.