| 216 | } |
| 217 | |
| 218 | static CommandSettingsArg GetCommandSettingsArgsId(const char* token) { |
| 219 | assert(token != nullptr); |
| 220 | |
| 221 | for (std::size_t i = 0, n = std::size(command_settings_desc); i < n; ++i) { |
| 222 | if (std::strcmp(command_settings_desc[i].token, token) == 0) { |
| 223 | return command_settings_desc[i].arguments; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | return COMMAND_SETTINGS_NONE; |
| 228 | } |
| 229 | |
| 230 | CommandLine::CommandLine(int argc, char* argv[]) |
| 231 | : command(_command), |