| 9 | namespace crown |
| 10 | { |
| 11 | static bool is_shortopt(const char *arg, char shortopt) |
| 12 | { |
| 13 | return shortopt != '\0' |
| 14 | && strlen32(arg) > 1 |
| 15 | && arg[0] == '-' |
| 16 | && arg[1] == shortopt |
| 17 | ; |
| 18 | } |
| 19 | |
| 20 | static bool is_longopt(const char *arg, const char *longopt) |
| 21 | { |