| 363 | } |
| 364 | |
| 365 | int cmd__parse_subcommand(int argc, const char **argv) |
| 366 | { |
| 367 | const char *usage[] = { |
| 368 | "test-tool parse-subcommand [flag-options] cmd <subcommand>", |
| 369 | NULL |
| 370 | }; |
| 371 | |
| 372 | argc = parse_options(argc, argv, NULL, test_flag_options, usage, |
| 373 | PARSE_OPT_STOP_AT_NON_OPTION); |
| 374 | |
| 375 | if (!argc || strcmp(argv[0], "cmd")) { |
| 376 | error("'cmd' is mandatory"); |
| 377 | usage_with_options(usage, test_flag_options); |
| 378 | } |
| 379 | |
| 380 | return parse_subcommand__cmd(argc, argv, test_flags); |
| 381 | } |
nothing calls this directly
no test coverage detected