sisi4s
Loading...
Searching...
No Matches
CLI::OptionAlreadyAdded Class Reference

Thrown when an option already exists. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::OptionAlreadyAdded:
Collaboration diagram for CLI::OptionAlreadyAdded:

Public Member Functions

 OptionAlreadyAdded (std::string msg, ExitCodes exit_code)
 
 OptionAlreadyAdded (std::string msg, int exit_code)
 
 OptionAlreadyAdded (std::string name)
 
- Public Member Functions inherited from CLI::ConstructionError
 ConstructionError (std::string msg, ExitCodes exit_code)
 
 ConstructionError (std::string msg, int exit_code)
 
- Public Member Functions inherited from CLI::Error
int get_exit_code () const
 
std::string get_name () const
 
 Error (std::string name, std::string msg, int exit_code=static_cast< int >(ExitCodes::BaseClass))
 
 Error (std::string name, std::string msg, ExitCodes exit_code)
 

Static Public Member Functions

static OptionAlreadyAdded Requires (std::string name, std::string other)
 
static OptionAlreadyAdded Excludes (std::string name, std::string other)
 

Protected Member Functions

 OptionAlreadyAdded (std::string ename, std::string msg, int exit_code)
 
 OptionAlreadyAdded (std::string ename, std::string msg, ExitCodes exit_code)
 
- Protected Member Functions inherited from CLI::ConstructionError
 ConstructionError (std::string ename, std::string msg, int exit_code)
 
 ConstructionError (std::string ename, std::string msg, ExitCodes exit_code)
 

Detailed Description

Thrown when an option already exists.

Constructor & Destructor Documentation

◆ OptionAlreadyAdded() [1/5]

CLI::OptionAlreadyAdded::OptionAlreadyAdded ( std::string  ename,
std::string  msg,
int  exit_code 
)
inlineprotected

◆ OptionAlreadyAdded() [2/5]

CLI::OptionAlreadyAdded::OptionAlreadyAdded ( std::string  ename,
std::string  msg,
ExitCodes  exit_code 
)
inlineprotected

◆ OptionAlreadyAdded() [3/5]

CLI::OptionAlreadyAdded::OptionAlreadyAdded ( std::string  msg,
ExitCodes  exit_code 
)
inline

◆ OptionAlreadyAdded() [4/5]

CLI::OptionAlreadyAdded::OptionAlreadyAdded ( std::string  msg,
int  exit_code 
)
inline

◆ OptionAlreadyAdded() [5/5]

CLI::OptionAlreadyAdded::OptionAlreadyAdded ( std::string  name)
inlineexplicit

Member Function Documentation

◆ Excludes()

static OptionAlreadyAdded CLI::OptionAlreadyAdded::Excludes ( std::string  name,
std::string  other 
)
inlinestatic

◆ Requires()

static OptionAlreadyAdded CLI::OptionAlreadyAdded::Requires ( std::string  name,
std::string  other 
)
inlinestatic

The documentation for this class was generated from the following file: