Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/xbps-query: improve argument parsing #588

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

classabbyamp
Copy link
Member

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.

this lets things be a bit more flexible for users, for example:
xbps-query -Rx --fulldeptree foo is now allowed
@classabbyamp classabbyamp force-pushed the query/argparse branch 4 times, most recently from 20156fb to 719564c Compare February 27, 2024 17:19
this allows --repository <repo> instead of --repository=<repo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant