summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-10-07 13:08:31 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-10-07 13:08:31 +0000
commit55d13e3140173f223cebacbb54017a5a1d58d73e (patch)
tree1a48f400b8fc8668f4410e9b4da2230140716416 /bin/emaint
parentremoving unused sandbox dirs. (diff)
downloadportage-multirepo-55d13e3140173f223cebacbb54017a5a1d58d73e.tar.gz
portage-multirepo-55d13e3140173f223cebacbb54017a5a1d58d73e.tar.bz2
portage-multirepo-55d13e3140173f223cebacbb54017a5a1d58d73e.zip
Rework to API behaviour rather than API documentation
svn path=/main/branches/2.0/; revision=2117
Diffstat (limited to 'bin/emaint')
-rwxr-xr-xbin/emaint8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/emaint b/bin/emaint
index 80a71a72..3fdd03f2 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -57,12 +57,12 @@ module_names.sort()
module_names.insert(0, "all")
-def exclusive(option, value, empty, parser, var=None):
+def exclusive(option, unused1, unused2, unused3, var=None):
if not var:
raise ValueError("var not specified to exclusive()")
if getattr(parser, var, ""):
raise OptionValueError("%s and %s are exclusive options" % (getattr(parser, var), value))
- setattr(parser, var, value)
+ setattr(parser, var, option)
usage = "usage: emaint [options] " + " | ".join(module_names)
@@ -84,7 +84,7 @@ if parser.action:
action = parser.action
else:
print "Defaulting to --check"
- action = "--check"
+ action = "-c/--check"
if args[0] == "all":
tasks = modules.values()
@@ -92,7 +92,7 @@ else:
tasks = [modules[args[0]]]
-if action == "--check":
+if action == "-c/--check":
status = "Checking %s for problems"
func = "check"
else: