-
Notifications
You must be signed in to change notification settings - Fork 34
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
subcommand convenience wrapper doesn't work #25
Comments
@casperdcl curious, what is the use case here, could you give an example please? |
basically the https://github.com/iterative/shtab/blob/a01e2b592102496a3a7b6861b448d0d6e78407f4/examples/customcomplete.py demo doesn't work - the generated completions only complete one subcommand ( With #26 (correct convenience function), we can probably halve the number of lines in https://github.com/iterative/dvc/blob/master/dvc/command/completion.py |
so, DVC is not affected at the moment? |
no, not affected because it isn't (yet) using this convenience function. Merging #26 also won't affect A PR in |
@casperdcl got it, thanks! 🙏 (that's why it was hard to get the idea, since I was trying it on the DVC and was not seeing any issues). |
shtab/examples/customcomplete.py
Line 43 in a01e2b5
subparser
rather than the full (parent)parser
The text was updated successfully, but these errors were encountered: