| 106 | } |
| 107 | |
| 108 | static const OptionDef* find_option(const OptionDef *po, const char *name){ |
| 109 | while (po->name != NULL) { |
| 110 | if (!strcmp(name, po->name)) |
| 111 | break; |
| 112 | po++; |
| 113 | } |
| 114 | return po; |
| 115 | } |
| 116 | |
| 117 | void parse_options(int argc, char **argv, const OptionDef *options, |
| 118 | void (* parse_arg_function)(const char*)) |