xbps-query: initialize some modes correctly; remove obsolete -D option.

This commit is contained in:
Juan RP 2014-05-26 17:59:58 +02:00
parent f1cb7f43dc
commit 0ffc536b48

View File

@ -71,7 +71,7 @@ usage(bool fail)
int int
main(int argc, char **argv) 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[] = { const struct option longopts[] = {
{ "config", required_argument, NULL, 'C' }, { "config", required_argument, NULL, 'C' },
{ "cachedir", required_argument, NULL, 'c' }, { "cachedir", required_argument, NULL, 'c' },
@ -120,8 +120,6 @@ main(int argc, char **argv)
case 'c': case 'c':
cachedir = optarg; cachedir = optarg;
break; break;
case 'D':
break;
case 'd': case 'd':
flags |= XBPS_FLAG_DEBUG; flags |= XBPS_FLAG_DEBUG;
break; break;
@ -130,22 +128,22 @@ main(int argc, char **argv)
show_files = opmode = true; show_files = opmode = true;
break; break;
case 'H': case 'H':
list_hold = true; list_hold = opmode = true;
break; break;
case 'h': case 'h':
usage(false); usage(false);
/* NOTREACHED */ /* NOTREACHED */
case 'L': case 'L':
list_repos = true; list_repos = opmode = true;
break; break;
case 'l': case 'l':
list_pkgs = true; list_pkgs = opmode = true;
break; break;
case 'm': case 'm':
list_manual = true; list_manual = opmode = true;
break; break;
case 'O': case 'O':
orphans = true; orphans = opmode = true;
break; break;
case 'o': case 'o':
pkg = optarg; pkg = optarg;