Last segment of the long option name (e.g. conflict-strategy → STRATEGY).
(longName: string)
| 167 | if (opt.default !== undefined && opt.default !== '' && !Array.isArray(opt.default)) { |
| 168 | text = text ? `${text} (default: ${opt.default})` : `(default: ${opt.default})`; |
| 169 | } |
| 170 | return text; |
| 171 | } |
| 172 | |
| 173 | function visibleOptions(command: Command): [string, Option][] { |
| 174 | return Object.entries(command.options || {}).filter(([name]) => !HIDDEN_OPTIONS.has(name)) as [ |
| 175 | string, |
| 176 | Option, |
no test coverage detected