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

Function optbug

parse-options.c:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19static void optbug(const struct option *opt, const char *reason)
20{
21 if (opt->long_name && opt->short_name)
22 bug("switch '%c' (--%s) %s", opt->short_name,
23 opt->long_name, reason);
24 else if (opt->long_name)
25 bug("option '%s' %s", opt->long_name, reason);
26 else
27 bug("switch '%c' %s", opt->short_name, reason);
28}
29
30static const char *optname(const struct option *opt, enum opt_parsed flags)
31{

Callers 3

build_cmdmode_listFunction · 0.85
parse_options_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected