MCPcopy Create free account
hub / github.com/git/git / cmd__parse_options_flags

Function cmd__parse_options_flags

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

Source from the content-addressed store, hash-verified

303};
304
305int 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
323static int subcmd_one(int argc, const char **argv, const char *prefix UNUSED,
324 struct repository *repo UNUSED)

Callers

nothing calls this directly

Calls 4

parse_optionsFunction · 0.85
errorFunction · 0.85
usage_with_optionsFunction · 0.85
parse_options_flags__cmdFunction · 0.85

Tested by

no test coverage detected