* 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]")
| 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 |
no outgoing calls
no test coverage detected