See if an argument is an option
| 319 | |
| 320 | // See if an argument is an option |
| 321 | inline static int isOption(unsigned flags, const char *arg) |
| 322 | { |
| 323 | return ((arg != nullptr) && ((*arg != '\0') || (arg[1] != '\0')) && |
| 324 | ((*arg == '-') || ((flags & static_cast<signed>(Options::OptCtrl::PLUS)) && (*arg == '+')))); |
| 325 | } |
| 326 | |
| 327 | // See if we should be parsing only options or if we also need to |
| 328 | // parse positional arguments |
no outgoing calls
no test coverage detected