MCPcopy
hub / github.com/tj/commander.js / subcommandDescription

Method subcommandDescription

lib/help.js:314–317  ·  view source on GitHub ↗

* Get the subcommand summary to show in the list of subcommands. * (Fallback to description for backwards compatibility.) * * @param {Command} cmd * @returns {string}

(cmd)

Source from the content-addressed store, hash-verified

312 */
313
314 subcommandDescription(cmd) {
315 // @ts-ignore: because overloaded return type
316 return cmd.summary() || cmd.description();
317 }
318
319 /**
320 * Get the option description to show in the list of options.

Callers 3

formatHelpMethod · 0.80
index.test-d.tsFile · 0.80

Calls 2

summaryMethod · 0.80
descriptionMethod · 0.80

Tested by

no test coverage detected