code: function handleCommandError(ex) {
      // If the command throws an exception, display the error message and command help.
      if (ex instanceof Error) {
          console.log(chalk.red(ex.message));
      } else {
          console.log(chalk.red(ex));
      }
      console.log();
      const helpArgs = {
          _: [command]
      };
      helpCommand(helpArgs);
  }
docs: If the command throws an exception, display the error message and command help
  @param {*} ex The thrown exception