cli20 0.1.2
A C++20 typed-schema command-line parser
Loading...
Searching...
No Matches
error.hh File Reference
#include <string>

Go to the source code of this file.

Classes

struct  cli::ParseError
 Carries all context about a single parse/validation failure. More...

Namespaces

namespace  cli

Enumerations

enum class  cli::ErrorCode {
  cli::unknown_option , cli::unknown_command , cli::unexpected_argument , cli::missing_value ,
  cli::invalid_value , cli::duplicate_argument , cli::conversion_error , cli::out_of_range ,
  cli::missing_required , cli::mutually_exclusive , cli::dependency_missing , cli::invalid_choice ,
  cli::validation_failed , cli::help_requested , cli::exit_success , cli::unknown_error
}
 Identifies the specific failure that occurred during parsing or validation. More...
enum class  cli::ErrorKind { cli::parse , cli::conversion , cli::validation }
 Broad classification of an error for structured error handling. More...

Functions

constexpr auto cli::to_string (ErrorCode code) noexcept -> std::string_view
 Returns a human-readable description of an ErrorCode.