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

Invalid hint for unknown short argument available in other commands #1881

Open
jrohel opened this issue Nov 20, 2024 · 0 comments
Open

Invalid hint for unknown short argument available in other commands #1881

jrohel opened this issue Nov 20, 2024 · 0 comments

Comments

@jrohel
Copy link
Contributor

jrohel commented Nov 20, 2024

PR #1858 introduced a hint for an unknown argument available in other commands.

However, there is a problem with a group of several short arguments. For example:

# dnf -yl upgrade
Unknown argument "-yl" for command "dnf5". Add "--help" for more information about the arguments. 
The argument is available for commands: . (It has to be placed after the command.)

Instead of being told that the second argument 'l' is unknown (or in this case, that it is available for repoquery), the user is told the information for the first argument 'y', which is available globally (an empty command is displayed).

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

No branches or pull requests

1 participant