(commandPath: string, option: Option)
| 251 | } |
| 252 | |
| 253 | function buildOptionUsage(commandPath: string, option: Option): string { |
| 254 | const preferred = |
| 255 | option.long || option.short || formatOptionSignature(option); |
| 256 | const placeholder = extractOptionPlaceholder(option); |
| 257 | const usage = [commandPath, preferred, placeholder] |
| 258 | .filter(Boolean) |
| 259 | .join(" ") |
| 260 | .replace(/\s+/g, " ") |
| 261 | .trim(); |
| 262 | |
| 263 | return usage; |
| 264 | } |
| 265 | |
| 266 | function buildOptionDetails(option: Option): string[] { |
| 267 | const details: string[] = []; |
no test coverage detected
searching dependent graphs…