diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-24 00:06:09 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-24 00:06:09 +0000 |
commit | 41438b430b6959451fce99d1152591c4ff082c3b (patch) | |
tree | 1a44c1d532da219a186c21f32327d67ccf490653 | |
parent | 69e2e5d5a458876cbccb6e6f479d41eaa55cf544 (diff) | |
download | portage-41438b430b6959451fce99d1152591c4ff082c3b.tar.gz portage-41438b430b6959451fce99d1152591c4ff082c3b.tar.bz2 portage-41438b430b6959451fce99d1152591c4ff082c3b.zip |
Bug #252304 - Restore the -V/--version option.
svn path=/main/trunk/; revision=12293
-rwxr-xr-x | bin/repoman | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman index fc249250a..2755706ca 100755 --- a/bin/repoman +++ b/bin/repoman @@ -177,6 +177,9 @@ def ParseArgs(args, qahelp): parser.add_option('-v', '--verbose', dest="verbosity", action='count', help='be very verbose in output', default=0) + parser.add_option('-V', '--version', dest='version', action='store_true', + help='show version info') + parser.add_option('-x', '--xmlparse', dest='xml_parse', action='store_true', default=False, help='forces the metadata.xml parse check to be carried out') @@ -421,6 +424,10 @@ no_exec = frozenset(["Manifest","ChangeLog","metadata.xml"]) options, arguments = ParseArgs(sys.argv, qahelp) +if options.version: + print "Portage", portage.VERSION + sys.exit(0) + # Set this to False when an extraordinary issue (generally # something other than a QA issue) makes it impossible to # commit (like if Manifest generation fails). |