projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f65bd
)
_argparse: add ArgumentParser.error()
author
Zac Medico
<zmedico@gentoo.org>
Fri, 2 Aug 2013 23:03:00 +0000
(16:03 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 2 Aug 2013 23:03:00 +0000
(16:03 -0700)
pym/portage/util/_argparse.py
patch
|
blob
|
history
diff --git
a/pym/portage/util/_argparse.py
b/pym/portage/util/_argparse.py
index a44afed7b82ff167c61217f13eded3642df6312c..2f915dc55bade7003ceef61104ec638302f9b069 100644
(file)
--- 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)