From 0ffc536b486f0fb1715aacefc4d7c930f63f749d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 26 May 2014 17:59:58 +0200 Subject: [PATCH] xbps-query: initialize some modes correctly; remove obsolete -D option. --- bin/xbps-query/main.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/bin/xbps-query/main.c b/bin/xbps-query/main.c index a73f01e9..d8621bcd 100644 --- a/bin/xbps-query/main.c +++ b/bin/xbps-query/main.c @@ -71,7 +71,7 @@ usage(bool fail) int main(int argc, char **argv) { - const char *shortopts = "C:c:D:dfhHLlmOo:p:Rr:s:S:VvXx"; + const char *shortopts = "C:c:dfhHLlmOo:p:Rr:s:S:VvXx"; const struct option longopts[] = { { "config", required_argument, NULL, 'C' }, { "cachedir", required_argument, NULL, 'c' }, @@ -120,8 +120,6 @@ main(int argc, char **argv) case 'c': cachedir = optarg; break; - case 'D': - break; case 'd': flags |= XBPS_FLAG_DEBUG; break; @@ -130,22 +128,22 @@ main(int argc, char **argv) show_files = opmode = true; break; case 'H': - list_hold = true; + list_hold = opmode = true; break; case 'h': usage(false); /* NOTREACHED */ case 'L': - list_repos = true; + list_repos = opmode = true; break; case 'l': - list_pkgs = true; + list_pkgs = opmode = true; break; case 'm': - list_manual = true; + list_manual = opmode = true; break; case 'O': - orphans = true; + orphans = opmode = true; break; case 'o': pkg = optarg;