(option, parsedOption)
| 667 | Validates options parsed by nopt |
| 668 | */ |
| 669 | function isValidParsedOption(option, parsedOption) { |
| 670 | // option.name didn't parse |
| 671 | if (parsedOption === undefined) { |
| 672 | // no default |
| 673 | if (option.default === undefined) { |
| 674 | if (option.required) { |
| 675 | return false; |
| 676 | } |
| 677 | } |
| 678 | } |
| 679 | |
| 680 | return true; |
| 681 | } |
| 682 | |
| 683 | /* |
| 684 | Validates alias. Must be a string or single key object |
no outgoing calls
no test coverage detected
searching dependent graphs…