MCPcopy Index your code
hub / github.com/git/git / cmd__parse_subcommand

Function cmd__parse_subcommand

t/helper/test-parse-options.c:365–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365int 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}

Callers

nothing calls this directly

Calls 4

parse_optionsFunction · 0.85
errorFunction · 0.85
usage_with_optionsFunction · 0.85
parse_subcommand__cmdFunction · 0.85

Tested by

no test coverage detected