| 116 | } |
| 117 | |
| 118 | static int |
| 119 | argparse_short_opt(struct argparse *this_, const struct argparse_option *options) |
| 120 | { |
| 121 | for (; options->type != ARGPARSE_OPT_END; options++) { |
| 122 | if (options->short_name == *this_->optvalue) { |
| 123 | this_->optvalue = this_->optvalue[1] ? this_->optvalue + 1 : NULL; |
| 124 | return argparse_getvalue(this_, options, 0); |
| 125 | } |
| 126 | } |
| 127 | return -2; |
| 128 | } |
| 129 | |
| 130 | static int |
| 131 | argparse_long_opt(struct argparse *this_, const struct argparse_option *options) |
no test coverage detected