MySQL 8.4.3
Source Code Documentation
|
CmdOption stores information about command line options. More...
#include <arg_handler.h>
Public Types | |
using | ActionFunc = std::function< void(const std::string &)> |
using | AtEndActionFunc = std::function< void(const std::string &)> |
using | OptionNames = std::vector< std::string > |
Public Member Functions | |
CmdOption (OptionNames names_, std::string description_, CmdOptionValueReq value_req_, const std::string metavar_, ActionFunc action_, AtEndActionFunc at_end_action_=[](const std::string &) {}) | |
Public Attributes | |
OptionNames | names |
std::string | description |
CmdOptionValueReq | value_req |
std::string | value |
std::string | metavar |
ActionFunc | action |
AtEndActionFunc | at_end_action |
bool | required {false} |
CmdOption stores information about command line options.
The CmdOption structure stores information about command line options.
using CmdOption::ActionFunc = std::function<void(const std::string &)> |
using CmdOption::AtEndActionFunc = std::function<void(const std::string &)> |
using CmdOption::OptionNames = std::vector<std::string> |
|
inline |
ActionFunc CmdOption::action |
AtEndActionFunc CmdOption::at_end_action |
std::string CmdOption::description |
std::string CmdOption::metavar |
OptionNames CmdOption::names |
bool CmdOption::required {false} |
std::string CmdOption::value |
CmdOptionValueReq CmdOption::value_req |