| 303 | }; |
| 304 | |
| 305 | int cmd__parse_options_flags(int argc, const char **argv) |
| 306 | { |
| 307 | const char *usage[] = { |
| 308 | "test-tool parse-options-flags [flag-options] cmd [options]", |
| 309 | NULL |
| 310 | }; |
| 311 | |
| 312 | argc = parse_options(argc, argv, NULL, test_flag_options, usage, |
| 313 | PARSE_OPT_STOP_AT_NON_OPTION); |
| 314 | |
| 315 | if (!argc || strcmp(argv[0], "cmd")) { |
| 316 | error("'cmd' is mandatory"); |
| 317 | usage_with_options(usage, test_flag_options); |
| 318 | } |
| 319 | |
| 320 | return parse_options_flags__cmd(argc, argv, test_flags); |
| 321 | } |
| 322 | |
| 323 | static int subcmd_one(int argc, const char **argv, const char *prefix UNUSED, |
| 324 | struct repository *repo UNUSED) |
nothing calls this directly
no test coverage detected