MCPcopy Create free account
hub / github.com/PicoCreator/smol-dev-js / cliArgumentError

Method cliArgumentError

src/cli/OutputHandler.js:243–246  ·  view source on GitHub ↗

* argument handling error, * This is used for exceptions thrown while processing and validating command line arguments * * Note that argument exceptions, ignores the --silent setting * * @param {String} mainError message to send * @param {String} helpMessage [optional] additional messa

(mainError, helpMessage = "[Use -h for more help information]")

Source from the content-addressed store, hash-verified

241 * @param {String} helpMessage [optional] additional message to send, defaults to "use -h"
242 */
243 cliArgumentError(mainError, helpMessage = "[Use -h for more help information]") {
244 console.error( chalk.red("[CLI ARGUMENT ERROR] "+mainError)+"\n"+chalk.dim(helpMessage) );
245 process.exit(1);
246 }
247
248 /**
249 * Generic handler error, which would terminate the CLI

Callers 2

mainCLI.jsFile · 0.80
MainSywac.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected