Merge pull request #118 from Gottox/query-fail-on-argument
xbps-query: fail on trailing parameters.
This commit is contained in:
commit
c688808b2c
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
||||
xbps-0.48 (???):
|
||||
|
||||
* xbps-query(1): fail if unused arguments are supplied.
|
||||
|
||||
* libxbps: relative cachedir set via xbps.d(5) now work correctly.
|
||||
Fixes #117 (https://github.com/voidlinux/xbps/issues/117)
|
||||
|
||||
|
@ -221,7 +221,12 @@ main(int argc, char **argv)
|
||||
} else if (!opmode) {
|
||||
/* show mode by default */
|
||||
show = opmode = true;
|
||||
pkg = *argv;
|
||||
pkg = *(argv++);
|
||||
argc--;
|
||||
}
|
||||
if (argc) {
|
||||
/* trailing parameters */
|
||||
usage(true);
|
||||
}
|
||||
/*
|
||||
* Initialize libxbps.
|
||||
|
Loading…
Reference in New Issue
Block a user