MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / printUsage

Function printUsage

cli/src/cli/help.ts:24–35  ·  view source on GitHub ↗
(commands: Command[])

Source from the content-addressed store, hash-verified

22 * ```
23 */
24export 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`);

Callers 2

getCommandFunction · 0.90
actionMethod · 0.90

Calls 2

printCommandSynopsisLineFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected