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

This commit is contained in:
Juan RP committed 2012-11-05 12:12:34 +01:00
1 parent 1948978dec
commit 2e649f9315
1 file changed
+2
+2
View File
@@ -170,6 +170,8 @@ main(int argc, char **argv)
show = true;
else if (!opmode && argc == optind)
usage(true);
else if ((search || own) && (argc == optind))
usage(true);
/*
* Initialize libxbps.