xbps-query: show usage() when called with no args.
This commit is contained in:
parent
5de4fb1f0a
commit
ca26c20dd5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user