def error(self, message):
<EOL>subcommands_quoted = '<STR_LIT:U+002CU+0020>'.join(<EOL>[repr(command) for command in _VISIBLE_COMMANDS])<EOL>subcommands = '<STR_LIT:U+002CU+0020>'.join(_VISIBLE_COMMANDS)<EOL>message = re.sub(<EOL>r'<STR_LIT>'<EOL>% subcommands, r'<STR_LIT>' % subcommands_quoted, message)<EOL>super(_EndpointsParser, self).error(message)<EOL>
Override superclass to support customized error message.

        Error message needs to be rewritten in order to display visible commands
        only, when invalid command is called by user. Otherwise, hidden commands
        will be displayed in stderr, which is not expected.

        Refer the following argparse python documentation for detailed method
        information:
          http://docs.python.org/2/library/argparse.html#exiting-methods

        Args:
          message: original error message that will be printed to stderr