Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
143
export
function
humanReadableArgName(arg) {
144
const
nameOutput = arg.name() + (arg.variadic === true ?
'...'
:
''
);
145
146
return
arg.required ?
'<'
+ nameOutput +
'>'
:
'['
+ nameOutput +
']'
;
147
}
Callers
2
usage
Method · 0.90
subcommandTerm
Method · 0.90
Calls
1
name
Method · 0.45
Tested by
no test coverage detected