YesChief!
C++ argv parser
Loading...
Searching...
No Matches
yeschief::OptionConfiguration Struct Reference

#include <yeschief.h>

Public Attributes

std::optional< std::anydefault_value = std::nullopt
 
std::optional< std::anyimplicit_value = std::nullopt
 
bool required = false
 
std::string value_help = "VALUE"
 

Detailed Description

Advanced configuration of an option

Member Data Documentation

◆ default_value

std::optional<std::any> yeschief::OptionConfiguration::default_value = std::nullopt

Default value for this option. Will be set if option is not set by the user

◆ implicit_value

std::optional<std::any> yeschief::OptionConfiguration::implicit_value = std::nullopt

Implicit value for this option. Will be set if option is given by the user without a value

◆ required

bool yeschief::OptionConfiguration::required = false

Set to true if the option is mandatory. Default to false

CLI::run will return a Fault if a required option is not set by the user

◆ value_help

std::string yeschief::OptionConfiguration::value_help = "VALUE"

Placeholder in help message for the option value


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