Skip to content

Argument Handling in XBPS Query's Remote Search #502

@ElliotLurie

Description

@ElliotLurie

When using xbps-query with the -s switch, the query must be placed after the argument, unlike other arguments as far as I can tell. For example, running xbps-query gimp -R works fine, producing the repo's information on the gimp package. However, running xbps-query gimp -Rs prints the binary's usage information as it doesn't understand the argument, requiring the command to be rearranged as xbps-query -Rs gimp. Seeing as this is a mode argument (in comparison to something like --property that conceptually requires a specific argument following it), the order should not matter as with other package managers that use a similar system like pacman on Arch.

Sorry if this explanation is a bit verbose. Let me know if there's anything I can clarify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions