subcommands don't get description but get help anyway #169
Open
Description
Thank you for the project, I like the idea to stick to a small Python app for it and re-use some well known APIs...
... but struggle generating some completion file.
I think there are some issues in shtab but it could also be a mis-usage.
- Using https://github.com/hyprland-community/pyprland/blob/main/scripts/pypr.py
- Running
shtab -u --prog pypr --shell=zsh pypr.get_parser
- it looks like
add_help
option to ArgumentParser only applies to the "root", I couldn't find a way to also avoid it in subparsers - the generated completion looks fine but misses the description for every subcommand
Metadata
Assignees
Labels
No labels