MCPcopy Index your code
hub / github.com/nodejs/node / getArgDescription

Function getArgDescription

lib/internal/main/print_help.js:100–117  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

98}
99
100function getArgDescription(type) {
101 switch (typeLookup[type]) {
102 case 'kNoOp':
103 case 'kV8Option':
104 case 'kBoolean':
105 case undefined:
106 break;
107 case 'kHostPort':
108 return '[host:]port';
109 case 'kInteger':
110 case 'kUInteger':
111 case 'kString':
112 case 'kStringList':
113 return '...';
114 default:
115 require('assert').fail(`unknown option type ${type}`);
116 }
117}
118
119function format(
120 { options, aliases = new SafeMap(), firstColumn, secondColumn },

Callers 1

formatFunction · 0.85

Calls 2

requireFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…