MCPcopy Create free account
hub / github.com/cppla/ServerStatus / argparse_error

Function argparse_error

server/src/argparse.c:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static void
27argparse_error(struct argparse *this_, const struct argparse_option *opt,
28 const char *reason)
29{
30 if (!strncmp(this_->argv[0], "--", 2)) {
31 fprintf(stderr, "error: option `%s` %s\n", opt->long_name, reason);
32 exit(-1);
33 } else {
34 fprintf(stderr, "error: option `%c` %s\n", opt->short_name, reason);
35 exit(-1);
36 }
37}
38
39static int
40argparse_getvalue(struct argparse *this_, const struct argparse_option *opt,

Callers 1

argparse_getvalueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected