This change allows kongplete to recognize command aliases.
If you have something like "my-cli update ... " and "up" is an alias for update, kongplete wouldn't recognize up as valid. This not only affected completion for the "up" command, but also for commands and flags that followed.
The fix is simple and small. This PR includes tests, and I also tested the behavior in a CLI I'm contributing to, to ensure that the user behavior is as expectedd.
This change allows kongplete to recognize command aliases.
If you have something like "my-cli update ... " and "up" is an alias for update, kongplete wouldn't recognize up as valid. This not only affected completion for the "up" command, but also for commands and flags that followed.
The fix is simple and small. This PR includes tests, and I also tested the behavior in a CLI I'm contributing to, to ensure that the user behavior is as expectedd.