| 98 | } |
| 99 | |
| 100 | static void |
| 101 | argparse_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 | |
| 118 | static int |
| 119 | argparse_short_opt(struct argparse *this_, const struct argparse_option *options) |