(context, option, threshold)
| 81 | } |
| 82 | |
| 83 | function createOptionUsage(context, option, threshold) { |
| 84 | const header = createOptionUsageHeader(option); |
| 85 | const optionDefaultValue = getOptionDefaultValue(context, option.name); |
| 86 | return createOptionUsageRow( |
| 87 | header, |
| 88 | `${option.description}${ |
| 89 | optionDefaultValue === undefined |
| 90 | ? "" |
| 91 | : `\nDefaults to ${createDefaultValueDisplay(optionDefaultValue)}.` |
| 92 | }`, |
| 93 | threshold, |
| 94 | ); |
| 95 | } |
| 96 | |
| 97 | function getOptionsWithOpposites(options) { |
| 98 | // Add --no-foo after --foo. |
no test coverage detected
searching dependent graphs…