xbps-query: show usage if no args are set for search or ownedby modes.

This commit is contained in:
Juan RP 2012-11-05 12:12:34 +01:00
parent 1948978dec
commit 2e649f9315

View File

@ -170,6 +170,8 @@ main(int argc, char **argv)
show = true; show = true;
else if (!opmode && argc == optind) else if (!opmode && argc == optind)
usage(true); usage(true);
else if ((search || own) && (argc == optind))
usage(true);
/* /*
* Initialize libxbps. * Initialize libxbps.