src/app/command-processor.js
function createErrorHandler(yargs) {
	if (!yargs) {
		yargs = Yargs;
	}
	return consoleErrorLogger.bind(undefined, console, yargs, true);
}
function createErrorHandler(yargs) {
	if (!yargs) {
		yargs = Yargs;
	}
	return consoleErrorLogger.bind(undefined, console, yargs, true);
}
function createErrorHandler ( yargs ) { if ( ! yargs ) { yargs = Yargs ; } return consoleErrorLogger . bind ( undefined , console , yargs , true ) ; }
Creates an error handler. The handler displays the error message if there is one,
or displays the help if there ie no error or it is a usage error.
@param {object} yargs
@returns {function(err)} the error handler function
Creates an error handler . The handler displays the error message if there is one or displays the help if there ie no error or it is a usage error .