| 9 | } |
| 10 | |
| 11 | std::string CommandLine::GetArg(int index) const noexcept { |
| 12 | if (static_cast<std::size_t>(index) < _argvs.size()) { |
| 13 | return _argvs[index]; |
| 14 | } else { |
| 15 | return ""; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | bool CommandLine::Parse(int argc, char **argv) { |
| 20 | if (argc < 2) { |