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

clash of sub commands with same name #42

Open
muka opened this issue Jan 10, 2024 · 0 comments
Open

clash of sub commands with same name #42

muka opened this issue Jan 10, 2024 · 0 comments

Comments

@muka
Copy link

muka commented Jan 10, 2024

Hi great project!

I noticed that if a cli has 2 sub commands with the same name but with different main, it select the first regardless of the subcommand group

Reading the code seems aliases uses the main to create the commands list but not the plain command itself. When selecting the command there is a check on the parent but I cannot understand if it actually take in consideration the parent command structure.

Could it be a bug or am I overlooking something?

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