summaryrefslogtreecommitdiff
path: root/lib/poptALL.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-31 13:11:25 +0000
committerjbj <devnull@localhost>2002-07-31 13:11:25 +0000
commit8ab4727f8cc8806021377729383652c31808f215 (patch)
tree9e86ff43c993b3abacf628f8a5eaeb38724a76ff /lib/poptALL.c
parent33e9f2c0d285bb854c6c7ce8842063485878342f (diff)
downloadrpm-8ab4727f8cc8806021377729383652c31808f215.tar.gz
rpm-8ab4727f8cc8806021377729383652c31808f215.tar.bz2
rpm-8ab4727f8cc8806021377729383652c31808f215.zip
- make --querytags a common option, fix errant regex (#70135).
- db3: increase mpool and cachesize, compile w/o --enable-debug. CVS patchset: 5584 CVS date: 2002/07/31 13:11:25
Diffstat (limited to 'lib/poptALL.c')
-rw-r--r--lib/poptALL.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/poptALL.c b/lib/poptALL.c
index b4aa4455b..cb9ffb6a4 100644
--- a/lib/poptALL.c
+++ b/lib/poptALL.c
@@ -11,8 +11,9 @@
#define POPT_SHOWVERSION -999
#define POPT_SHOWRC -998
+#define POPT_QUERYTAGS -997
#ifdef NOTYET
-#define POPT_RCFILE -997
+#define POPT_RCFILE -996
#endif
/*@unchecked@*/
@@ -149,6 +150,10 @@ static void rpmcliAllArgCallback( /*@unused@*/ poptContext con,
(void) rpmShowRC(stdout);
exit(EXIT_SUCCESS);
/*@notreached@*/ break;
+ case POPT_QUERYTAGS:
+ rpmDisplayQueryTags(stdout);
+ exit(EXIT_SUCCESS);
+ /*@notreached@*/ break;
#if defined(POPT_RCFILE)
case POPT_RCFILE: /* XXX FIXME: noop for now */
break;
@@ -216,6 +221,8 @@ struct poptOption rpmcliAllPoptTable[] = {
N_("use ROOT as top level directory"),
N_("ROOT") },
+ { "querytags", '\0', 0, 0, 'Q',
+ N_("display known query tags"), NULL },
{ "showrc", '\0', 0, NULL, POPT_SHOWRC,
N_("display final rpmrc and macro configuration"), NULL },
{ "quiet", '\0', 0, NULL, 'q',