From ca26c20dd56f6ec2bd8b9dd803c822397438d057 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 19 Nov 2012 21:06:37 +0100 Subject: [PATCH] xbps-query: show usage() when called with no args. --- bin/xbps-query/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);