koutil
Loading...
Searching...
No Matches
errors.h File Reference
#include "koutil/args/option.h"
#include "koutil/args/result.h"
#include <cstdint>
#include <format>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  koutil
 
namespace  koutil::args
 
namespace  koutil::args::error
 

Functions

std::string koutil::args::error::make_argument_count (std::string_view name, std::uint32_t expected, std::uint32_t provided)
 
std::string koutil::args::error::make_command_argument_count (std::string_view name, std::uint32_t expected, std::uint32_t provided)
 
std::string koutil::args::error::make_unknown_argument (std::string_view name)
 
std::string koutil::args::error::make_unknown_long_option (std::string_view name)
 
std::string koutil::args::error::make_unknown_short_option (char name)
 
std::string koutil::args::error::make_invalid_short_option (std::string_view name)
 
std::string koutil::args::error::make_option_requires_value (std::string_view whole_name)
 
std::string koutil::args::error::make_unexpected_option_value (std::string_view whole_name)
 
template<extends_result Result>
std::string koutil::args::error::make_missing_required_option (const option_t< Result > &option)