(options)
| 95 | } |
| 96 | |
| 97 | function getOptionsWithOpposites(options) { |
| 98 | // Add --no-foo after --foo. |
| 99 | const optionsWithOpposites = options.map((option) => [ |
| 100 | option.description ? option : null, |
| 101 | option.oppositeDescription |
| 102 | ? { |
| 103 | ...option, |
| 104 | name: `no-${option.name}`, |
| 105 | type: "boolean", |
| 106 | description: option.oppositeDescription, |
| 107 | } |
| 108 | : null, |
| 109 | ]); |
| 110 | return optionsWithOpposites.flat().filter(Boolean); |
| 111 | } |
| 112 | |
| 113 | function createUsage(context) { |
| 114 | const sortedOptions = context.detailedOptions.sort((optionA, optionB) => |
no test coverage detected
searching dependent graphs…