From 5afdbde440fae41037774c0d602758e6851b0c12 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sun, 13 Jan 2008 00:55:21 +0000 Subject: [PATCH] style fixes (imports), add support for --version (bug 138159) svn path=/main/trunk/; revision=9200 --- bin/emaint | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/emaint b/bin/emaint index 483c77c8d..8464d1317 100755 --- a/bin/emaint +++ b/bin/emaint @@ -1,8 +1,11 @@ #!/usr/bin/python -O - -import sys, os, time, signal -from optparse import OptionParser, OptionValueError +# vim: noet : +import os import re +import signal +import sys +import time +from optparse import OptionParser, OptionValueError try: import portage @@ -12,6 +15,7 @@ except ImportError: import portage import portage.const, portage.exception, portage.output + class WorldHandler(object): def name(): @@ -448,7 +452,7 @@ def emaint_main(myargv): usage+= "tools and provide a single interface to system health checks." - parser = OptionParser(usage=usage) + parser = OptionParser(usage=usage, version=portage.VERSION) parser.add_option("-c", "--check", help="check for problems", action="callback", callback=exclusive, callback_kwargs={"var":"action"}) parser.add_option("-f", "--fix", help="attempt to fix problems", -- 2.26.2