Kludge to get rid of ugly lone --quiet on usage message
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 20 Aug 2010 11:31:16 +0000 (14:31 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 20 Aug 2010 11:31:16 +0000 (14:31 +0300)
rpmbuild.c
rpmqv.c

index 51fcbfe..b7cfbbd 100644 (file)
@@ -36,7 +36,7 @@ static struct poptOption optionsTable[] = {
        N_("Build options with [ <specfile> | <tarball> | <source package> ]:"),
        NULL },
 
- { "quiet", '\0', 0, &quiet, 0,                        NULL, NULL},
+ { "quiet", '\0', POPT_ARGFLAG_DOC_HIDDEN, &quiet, 0, NULL, NULL},
 
  { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,
        N_("Common options for all rpm modes and executables:"),
diff --git a/rpmqv.c b/rpmqv.c
index f63e015..e9e23ee 100644 (file)
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -81,7 +81,7 @@ static struct poptOption optionsTable[] = {
        NULL },
 #endif /* IAM_RPMEIU */
 
- { "quiet", '\0', 0, &quiet, 0,                        NULL, NULL},
+ { "quiet", '\0', POPT_ARGFLAG_DOC_HIDDEN, &quiet, 0, NULL, NULL},
 
  { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,
        N_("Common options for all rpm modes and executables:"),