bug report: shell completion doesn't work with sub-commands v3-alpha4 #1814
Labels
area/v3
relates to / is being considered for v3
status/triage
maintainers still need to look into this
Checklist
Did you check the manual for your release? The v3 manual is here.Could not find the manual, link points to 404What problem does this solve?
If fixed, shell completion of sub-commands should work same as v2. For example:
Instead of calling/ completing
sub1
command the cli executes the action ofsub1
.The issue is here https://github.com/urfave/cli/blob/v3.0.0-alpha4/help.go#L448-L455.
--generate-shell-completion
is popped from arguments slice whencheckShellCompleteFlag
is run formycli
Run
forsub1
functioncheckShellCompleteFlag
returns false as there is no--generate-shell-completion
Solution description
--generate-shell-completion
the the last sub-command directly should be invoked for completion as it doesn't need chainingRun
should continue with existing stepsIf the solution correct, I will try to provide a PR for this
The text was updated successfully, but these errors were encountered: