Bug #138159 - add support for --version (trunk r9200)
authorZac Medico <zmedico@gentoo.org>
Thu, 31 Jan 2008 05:52:54 +0000 (05:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 31 Jan 2008 05:52:54 +0000 (05:52 -0000)
svn path=/main/branches/2.1.2/; revision=9239

bin/emaint

index 597527cdd04069408a06f439cc4c8993e8ed2659..ea8eef4ee3164ec62503aa6ce66c333b152e1de0 100755 (executable)
@@ -153,7 +153,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",