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

Method usageError

deps/npm/lib/base-cmd.js:175–182  ·  view source on GitHub ↗
(prefix = '')

Source from the content-addressed store, hash-verified

173 }
174
175 usageError (prefix = '') {
176 if (prefix) {
177 prefix += '\n\n'
178 }
179 return Object.assign(new Error(`\n${prefix}${this.usage}`), {
180 code: 'EUSAGE',
181 })
182 }
183
184 // Compare the number of entries with what was expected
185 checkExpected (entries) {

Callers 15

#validateFlagsMethod · 0.95
execCommandClassMethod · 0.80
execMethod · 0.80
execMethod · 0.80
npxMethod · 0.80
addMethod · 0.80
lsMethod · 0.80
#npxCacheMethod · 0.80
npxRmMethod · 0.80
npxInfoMethod · 0.80
execMethod · 0.80
execMethod · 0.80

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected