|
Option++
2.0
C++ library for reading command-line options
|
Exception class indicating an invalid option. More...
#include <parser.hpp>


Public Member Functions | |
| parse_error (const std::string msg, const std::string fn_name, const std::string option="") | |
| Constructor. More... | |
| const std::string & | option () const noexcept |
| Return option name. More... | |
Public Member Functions inherited from optionpp::error | |
| error (const std::string &msg, const std::string &fn_name) | |
| Constructor. More... | |
| const std::string & | function () const |
| Return the name of function that threw the exception. More... | |
Exception class indicating an invalid option.
|
inline |
Constructor.
| msg | String describing the error. |
| fn_name | Name of the function that threw the exception. |
| option | Name of the option that triggered the error (if any). |
|
inlinenoexcept |
Return option name.
1.8.17