From: Zac Medico Date: Fri, 2 Aug 2013 23:03:00 +0000 (-0700) Subject: _argparse: add ArgumentParser.error() X-Git-Tag: v2.2.0_alpha192~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c63deea651dfa38de89fcb5b011d77afa938d23;p=portage.git _argparse: add ArgumentParser.error() --- diff --git a/pym/portage/util/_argparse.py b/pym/portage/util/_argparse.py index a44afed7b..2f915dc55 100644 --- a/pym/portage/util/_argparse.py +++ b/pym/portage/util/_argparse.py @@ -19,6 +19,7 @@ except ImportError: self.add_argument = parser.add_option self.parse_known_args = parser.parse_args self.parse_args = parser.parse_args + self.error = parser.error def add_argument_group(self, title=None, **kwargs): optiongroup = OptionGroup(self._parser, title, **kwargs)