| 359 | } |
| 360 | |
| 361 | command_option::command_option(command_option_type t, const std::string &n, const std::string &d, bool r) : |
| 362 | type(t), name(n), description(d), required(r), focused(false), autocomplete(false) |
| 363 | { |
| 364 | if (std::any_of(n.begin(), n.end(), [](unsigned char c){ return std::isupper(c); })) { |
| 365 | throw dpp::logic_exception(err_command_has_caps, "Command options can not contain capital letters in the name of the option."); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | command_option& command_option::add_choice(const command_option_choice &o) |
| 370 | { |
nothing calls this directly
no test coverage detected