iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
361 stars 35 forks source link

Outdated info about argcomplete #146

Open scop opened 1 year ago

scop commented 1 year ago

https://github.com/iterative/shtab/blob/3d614484fbf664adc9b898b5f5f82a9b793482e3/README.rst?plain=1#L83

argcomplete supports bash and zsh these days, I suppose updating the item to refect that or removing it would be in order.

casperdcl commented 1 year ago

I did check this some time ago, but unfortunately found that it doesn't really support zsh.

By comparison shtab has first-class support for zsh, including printing help text. (Incidentally do you know if there's a neat way to do the same in bash?)

scop commented 1 year ago

Ah, I'm not a zsh user nor have I even checked, just followed what they said in their docs. I'll leave it up to you to make the call here :)

Regarding help text, I guess it depends on the definition of "neat" -- I'm personally not really a fan of the concept but I do understand why others might feel differently. Anyway, the first thing that springs to mind is the "active help" feature of https://github.com/spf13/cobra: