(commands: Command[])
| 22 | * ``` |
| 23 | */ |
| 24 | export function printUsage(commands: Command[]) { |
| 25 | console.log('Usage:'); |
| 26 | for (const command of commands) { |
| 27 | printCommandSynopsisLine(command); |
| 28 | } |
| 29 | |
| 30 | console.log(''); |
| 31 | console.log('General options:'); |
| 32 | console.log(`${ROW_INDENT}-h|--help: Show extended help for a command (example fs upload --help)`); |
| 33 | console.log(`${ROW_INDENT}-j|--json: Output in JSON format`); |
| 34 | console.log(`${ROW_INDENT}-v|--verbose: Enable verbose output`); |
| 35 | |
| 36 | console.log(''); |
| 37 | console.log('Any short names are supported (as long as they are unique):'); |
| 38 | console.log(`${ROW_INDENT}filesystem upload -> fs up`); |
no test coverage detected