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

Function parse_subcommand

parse-options.c:609–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609static enum parse_opt_result parse_subcommand(const char *arg,
610 const struct option *options)
611{
612 for (; options->type != OPTION_END; options++)
613 if (options->type == OPTION_SUBCOMMAND &&
614 !strcmp(options->long_name, arg)) {
615 *(parse_opt_subcommand_fn **)options->value = options->subcommand_fn;
616 return PARSE_OPT_SUBCOMMAND;
617 }
618
619 return PARSE_OPT_UNKNOWN;
620}
621
622static void check_typos(const char *arg, const struct option *options)
623{

Callers 1

parse_options_stepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected