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

Thrown when the wrong number of arguments has been received. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::ArgumentMismatch:
Collaboration diagram for CLI::ArgumentMismatch:

Public Member Functions

 ArgumentMismatch (std::string msg, ExitCodes exit_code)
 
 ArgumentMismatch (std::string msg, int exit_code)
 
 ArgumentMismatch (std::string msg)
 
 ArgumentMismatch (std::string name, int expected, std::size_t received)
 
- Public Member Functions inherited from CLI::ParseError
 ParseError (std::string msg, ExitCodes exit_code)
 
 ParseError (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 ArgumentMismatch AtLeast (std::string name, int num, std::size_t received)
 
static ArgumentMismatch AtMost (std::string name, int num, std::size_t received)
 
static ArgumentMismatch TypedAtLeast (std::string name, int num, std::string type)
 
static ArgumentMismatch FlagOverride (std::string name)
 

Protected Member Functions

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

Detailed Description

Thrown when the wrong number of arguments has been received.

Constructor & Destructor Documentation

◆ ArgumentMismatch() [1/6]

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

◆ ArgumentMismatch() [2/6]

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

◆ ArgumentMismatch() [3/6]

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

◆ ArgumentMismatch() [4/6]

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

◆ ArgumentMismatch() [5/6]

CLI::ArgumentMismatch::ArgumentMismatch ( std::string  msg)
inlineexplicit

◆ ArgumentMismatch() [6/6]

CLI::ArgumentMismatch::ArgumentMismatch ( std::string  name,
int  expected,
std::size_t  received 
)
inline

Member Function Documentation

◆ AtLeast()

static ArgumentMismatch CLI::ArgumentMismatch::AtLeast ( std::string  name,
int  num,
std::size_t  received 
)
inlinestatic

◆ AtMost()

static ArgumentMismatch CLI::ArgumentMismatch::AtMost ( std::string  name,
int  num,
std::size_t  received 
)
inlinestatic

◆ FlagOverride()

static ArgumentMismatch CLI::ArgumentMismatch::FlagOverride ( std::string  name)
inlinestatic

◆ TypedAtLeast()

static ArgumentMismatch CLI::ArgumentMismatch::TypedAtLeast ( std::string  name,
int  num,
std::string  type 
)
inlinestatic

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