lesyjs icon indicating copy to clipboard operation
lesyjs copied to clipboard

clash of sub commands with same name

Open muka opened this issue 6 months ago • 0 comments

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?

muka avatar Jan 10 '24 12:01 muka