xbps-query: show usage if no args are set for search or ownedby modes.
This commit is contained in:
parent
1948978dec
commit
2e649f9315
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user