xbps icon indicating copy to clipboard operation
xbps copied to clipboard

bin/xbps-query: improve argument parsing

Open classabbyamp opened this issue 2 years ago • 0 comments

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.

classabbyamp avatar Feb 27 '24 16:02 classabbyamp