koutil
Loading...
Searching...
No Matches
koutil::args::error Namespace Reference

Functions

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

Function Documentation

◆ make_argument_count()

std::string koutil::args::error::make_argument_count ( std::string_view name,
std::uint32_t expected,
std::uint32_t provided )
inline

◆ make_command_argument_count()

std::string koutil::args::error::make_command_argument_count ( std::string_view name,
std::uint32_t expected,
std::uint32_t provided )
inline

◆ make_invalid_short_option()

std::string koutil::args::error::make_invalid_short_option ( std::string_view name)
inline

◆ make_missing_required_option()

template<extends_result Result>
std::string koutil::args::error::make_missing_required_option ( const option_t< Result > & option)
inline

◆ make_option_requires_value()

std::string koutil::args::error::make_option_requires_value ( std::string_view whole_name)
inline

◆ make_unexpected_option_value()

std::string koutil::args::error::make_unexpected_option_value ( std::string_view whole_name)
inline

◆ make_unknown_argument()

std::string koutil::args::error::make_unknown_argument ( std::string_view name)
inline

◆ make_unknown_long_option()

std::string koutil::args::error::make_unknown_long_option ( std::string_view name)
inline

◆ make_unknown_short_option()

std::string koutil::args::error::make_unknown_short_option ( char name)
inline