(command: Command)
| 92 | } |
| 93 | |
| 94 | function printCommandSynopsisLine(command: Command) { |
| 95 | const body = buildCommandSynopsis(command); |
| 96 | console.log(`${ROW_INDENT}${command.group} ${command.name}${body ? ` ${body}` : ''}`); |
| 97 | } |
| 98 | |
| 99 | function buildCommandSynopsis(command: Command): string { |
| 100 | const positionals = command.args || []; |
| 101 | const optionParts = visibleOptions(command).map(([name, opt]) => buildCommandSynopsisOption(name, opt)); |
no test coverage detected