cli/lib/cli.js
function unknownOption (flag, type = 'option') {
  if (this._allowUnknownOption) return

  logger.error()
  logger.error(`  error: unknown ${type}:`, flag)
  logger.error()
  this.outputHelp()
  util.exit(1)
}
function unknownOption (flag, type = 'option') {
  if (this._allowUnknownOption) return

  logger.error()
  logger.error(`  error: unknown ${type}:`, flag)
  logger.error()
  this.outputHelp()
  util.exit(1)
}
function unknownOption ( flag , type = 'option' ) { if ( this . _allowUnknownOption ) return logger . error ( ) logger . error ( ` ${ type } ` , flag ) logger . error ( ) this . outputHelp ( ) util . exit ( 1 ) }
patch "commander" method called when a user passed an unknown option we want to print help for the current command and exit with an error
patch commander method called when a user passed an unknown option we want to print help for the current command and exit with an error