shtab icon indicating copy to clipboard operation
shtab copied to clipboard

Outdated info about argcomplete

Open scop opened this issue 2 years ago • 2 comments

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.

scop avatar Jul 29 '23 04:07 scop

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?)

casperdcl avatar Jul 29 '23 07:07 casperdcl

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:

  • https://github.com/spf13/cobra/blob/main/site/content/active_help.md
  • https://github.com/spf13/cobra/blob/main/bash_completionsV2.go

scop avatar Aug 04 '23 19:08 scop