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

Function argparse_options_check

server/src/argparse.c:100–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static void
101argparse_options_check(const struct argparse_option *options)
102{
103 for (; options->type != ARGPARSE_OPT_END; options++) {
104 switch (options->type) {
105 case ARGPARSE_OPT_END:
106 case ARGPARSE_OPT_BOOLEAN:
107 case ARGPARSE_OPT_BIT:
108 case ARGPARSE_OPT_INTEGER:
109 case ARGPARSE_OPT_STRING:
110 continue;
111 default:
112 fprintf(stderr, "wrong option type: %d", options->type);
113 break;
114 }
115 }
116}
117
118static int
119argparse_short_opt(struct argparse *this_, const struct argparse_option *options)

Callers 1

argparse_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected