_argparse: add ArgumentParser.error()
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Aug 2013 23:03:00 +0000 (16:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Aug 2013 23:03:00 +0000 (16:03 -0700)
pym/portage/util/_argparse.py

index a44afed7b82ff167c61217f13eded3642df6312c..2f915dc55bade7003ceef61104ec638302f9b069 100644 (file)
@@ -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)