MCPcopy
hub / github.com/expressjs/generator / renamedOption

Function renamedOption

bin/express-cli.js:508–513  ·  view source on GitHub ↗

* Generate a callback function for commander to warn about renamed option. * * @param {String} originalName * @param {String} newName

(originalName, newName)

Source from the content-addressed store, hash-verified

506 */
507
508function renamedOption (originalName, newName) {
509 return function (val) {
510 warning(util.format("option `%s' has been renamed to `%s'", originalName, newName))
511 return val
512 }
513}
514
515/**
516 * Display a warning similar to how errors are displayed by commander.

Callers 1

express-cli.jsFile · 0.85

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected