withfig / autocomplete

IDE-style autocomplete for your existing terminal & shell

Home Page:https://fig.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fig won't pass repeating arguments as one

sasial-dev opened this issue · comments

Sanity checks

  • My issue relates to a specific CLI completion spec (e.g. git checkout is missing options in git completion spec). If your issue is more general, please create your issue here: withfig/fig
  • I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
  • I would like to work on this.

What CLI tool does this relate to?

N/A

Which statement makes the most sense?

Something else

Issue Details

I'm trying to create a spec where for -v/--verbose, the amount of times you pass it changes the verbosity
Fig's currently passing -v -v -v -v/--verbose --verbose --verbose --verbose. Instead, I want it to pass -vvvv.

Code-77aow5Or.mp4

*This was originally triaged on Discord here.