| 36 | } |
| 37 | |
| 38 | static int find_option(int argc, const char **argv, const char *longopt, char shortopt) |
| 39 | { |
| 40 | for (int i = 0; i < argc; ++i) { |
| 41 | if (is_end_options_marker(argv[i])) |
| 42 | break; |
| 43 | |
| 44 | if (is_longopt(argv[i], longopt) || is_shortopt(argv[i], shortopt)) |
| 45 | return i; |
| 46 | } |
| 47 | |
| 48 | return argc; |
| 49 | } |
| 50 | |
| 51 | CommandLine::CommandLine(int argc, const char **argv) |
| 52 | : _argc(argc) |
no test coverage detected