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

Aliases should support tokens that look like other options #535

Closed
ajalt opened this issue Aug 8, 2024 Discussed in #534 · 0 comments · Fixed by #536
Closed

Aliases should support tokens that look like other options #535

ajalt opened this issue Aug 8, 2024 Discussed in #534 · 0 comments · Fixed by #536

Comments

@ajalt
Copy link
Owner

ajalt commented Aug 8, 2024

Discussed in #534

Originally posted by gbsmith August 7, 2024
If I have this

 override fun aliases(): Map<String, List<String>> = mapOf(
        "--list" to listOf("--command=list"),
        "ls" to listOf("--command=list"),
    )

The ls alias works as expected, while --list spits out

Error: no such option --list
Error: missing option --command

This should be easy to support.

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 a pull request may close this issue.

1 participant