void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
821 stars 124 forks source link

bin/xbps-query: improve argument parsing #588

Open classabbyamp opened 9 months ago

classabbyamp commented 9 months ago

makes the behaviour of the -R/--repository flags match what xbps-install et al. do, namely -R <repo> and --repository <repo> now work. Existing behaviours are preserved.

allows PKG argument to appear anywhere in argv for more flexible argument parsing. This is now a valid command, for example:

xbps-query -Rx --fulldeptree foo

This also improves some error messages instead of just printing the usage() naïvely.