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

Function humanReadableArgName

lib/argument.js:143–147  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

141 */
142
143export function humanReadableArgName(arg) {
144 const nameOutput = arg.name() + (arg.variadic === true ? '...' : '');
145
146 return arg.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']';
147}

Callers 2

usageMethod · 0.90
subcommandTermMethod · 0.90

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected