From 2e649f9315147c2801386f37422e20bd0e29c3c0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 5 Nov 2012 12:12:34 +0100 Subject: [PATCH] xbps-query: show usage if no args are set for search or ownedby modes. --- bin/xbps-query/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/xbps-query/main.c b/bin/xbps-query/main.c index d3dd4ee2..b64b3860 100644 --- a/bin/xbps-query/main.c +++ b/bin/xbps-query/main.c @@ -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.