| 222 | }; |
| 223 | |
| 224 | int cmd__submodule(int argc, const char **argv) |
| 225 | { |
| 226 | struct option options[] = { |
| 227 | OPT_END() |
| 228 | }; |
| 229 | size_t i; |
| 230 | |
| 231 | argc = parse_options(argc, argv, "test-tools", options, submodule_usage, |
| 232 | PARSE_OPT_STOP_AT_NON_OPTION); |
| 233 | if (argc < 1) |
| 234 | usage_with_options(submodule_usage, options); |
| 235 | |
| 236 | for (i = 0; i < ARRAY_SIZE(cmds); i++) |
| 237 | if (!strcmp(cmds[i].name, argv[0])) |
| 238 | return cmds[i].fn(argc, argv); |
| 239 | |
| 240 | usage_msg_optf("unknown subcommand '%s'", submodule_usage, options, |
| 241 | argv[0]); |
| 242 | |
| 243 | return 0; |
| 244 | } |
nothing calls this directly
no test coverage detected