Lines Matching defs:error
762 """An error from creating or using an argument (optional or positional).
782 """An error from trying to convert a command line string to a type."""
1299 args = {'filename': string, 'error': e}
1300 message = _("can't open '%(filename)s': %(error)s")
1452 # raise an error if the action type is not callable
1461 # raise an error if the metavar does not match the type
1565 # error on strings that don't start with an appropriate prefix
1734 error info when an error occurs
1747 conflict_handler='error',
1819 self.error(_('cannot have multiple subparser arguments'))
1872 self.error(msg % ' '.join(argv))
1904 self.error(str(err))
1964 # error if this argument is not allowed with other previously
2032 # error if a double-dash option did not use the
2142 self.error(_('the following arguments are required: %s') %
2152 # if no actions were used, report the error
2158 self.error(msg % ' '.join(names))
2183 self.error(str(err))
2264 self.error(msg % args)
2327 self.error(_('unexpected option string: %s') % option_string)
2385 self.error(msg % ' '.join(argv))
2417 # capture the full usage for use in error messages
2619 def error(self, message):
2620 """error(message: string)
2630 self.exit(2, _('%(prog)s: error: %(message)s\n') % args)