diff --git a/bin/xbps-query/main.c b/bin/xbps-query/main.c index c343747d..7053e173 100644 --- a/bin/xbps-query/main.c +++ b/bin/xbps-query/main.c @@ -169,7 +169,7 @@ main(int argc, char **argv) } if (!opmode && argc > optind) show = true; - else if (opmode && (argc == optind)) + else if (argc == 1 || (opmode && (argc == optind))) usage(true); else if ((search || own) && (argc == optind)) usage(true);