xbps-query: another argc fixup.

This commit is contained in:
Juan RP 2014-05-27 08:19:08 +02:00
parent ca8619dd57
commit 91344451a3

View File

@ -199,7 +199,7 @@ main(int argc, char **argv)
argc -= optind;
argv += optind;
if (argc == optind || (!argc && !opmode)) {
if (!argc && !opmode) {
usage(true);
} else if (!opmode) {
/* show mode by default */