On Wed, 2011-01-12 at 11:15 -0500, seth vidal wrote:
> > > > Why are these both shown in the output? Just one of them should
> be
> > > visible 
> > > > (and the other one deprecated but kept around for compatibilitys
> > > sake):
> > > >    --show-duplicates     show all versions of packages
> > > >    --show-dupes          show all versions of packages
> > > 
> > > This is a 2 lignes patch which I can do, which option is
> prefered ?
> > > (I would go for keeping --show-duplicates) 

There is the patch, 1 line added, 1 line changed :)

Pierre
From 64629bd8c089c12d7cf61c441e8843d854848a36 Mon Sep 17 00:00:00 2001
From: Pierre-Yves Chibon <pin...@pingoured.fr>
Date: Wed, 12 Jan 2011 17:31:30 +0100
Subject: [PATCH] Remove the --show-dupes from the --help while keeping the argument for compatibility shake

---
 repoquery.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/repoquery.py b/repoquery.py
index c14f296..f00be34 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -29,6 +29,7 @@ import exceptions
 import urlparse
 
 from optparse import OptionParser
+from optparse import SUPPRESS_HELP
 
 import logging
 import yum
@@ -1002,7 +1003,7 @@ def main(args):
                       dest="show_dupes",
                       help="show all versions of packages")
     parser.add_option("--show-dupes", action="store_true",
-                      help="show all versions of packages")
+                      help=SUPPRESS_HELP)
     parser.add_option("--repoid", action="append",
                       help="specify repoids to query, can be specified multiple times (default is all enabled)")
     parser.add_option("--enablerepo", action="append", dest="enablerepos",
-- 
1.7.3.4

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to