third_party/blink/tools/blinkpy/style/optparser.py
def _parse_error(self, error_message):
        """Print the help string and an error message, and exit."""
        # The method format_help() includes both the usage string and
        # the flag options.
        help = self._parser.format_help()
        # Separate help from the error message with a single blank line.
        self.stderr_write(help + '\n')
        if error_message:
            _log.error(error_message)

        # Since we are using this method to replace/override the Python
        # module optparse's OptionParser.error() method, we match its
        # behavior and exit with status code 2.
        #
        # As additional background, Python documentation says--
        #
        # "Unix programs generally use 2 for command line syntax errors
        #  and 1 for all other kind of errors."
        #
        # (from http://docs.python.org/library/sys.html#sys.exit )
        sys.exit(2)
Print the help string and an error message, and exit.
Print the help string and an error message, and exit.
Print the help string and an error message and exit .
def _parse_error(self, error_message):
        help = self._parser.format_help()
        self.stderr_write(help + '\n')
        if error_message:
            _log.error(error_message)
         As additional background, Python documentation says--
         "Unix programs generally use 2 for command line syntax errors
          and 1 for all other kind of errors."
         (from http://docs.python.org/library/sys.htmlsys.exit )
        sys.exit(2)
def _parse_error ( self , error_message ) : help = self . _parser . format_help ( ) self . stderr_write ( help + '\n' ) if error_message : _log . error ( error_message ) sys . exit ( 2 )
Print the help string and an error message, and exit.
Print the help string and an error message and exit .
"""Print the help string and an error message, and exit.""" # The method format_help() includes both the usage string and # the flag options. # Separate help from the error message with a single blank line. # Since we are using this method to replace/override the Python # module optparse's OptionParser.error() method, we match its # behavior and exit with status code 2. # # As additional background, Python documentation says-- # # "Unix programs generally use 2 for command line syntax errors #  and 1 for all other kind of errors." # # (from http://docs.python.org/library/sys.html#sys.exit )
self
error_message