Eyal Posener

Results 69 comments of Eyal Posener

Not sure what is the issue. I've copied your code and removed the `Sub`: ```go package main import ( "flag" "github.com/posener/complete/v2" "github.com/posener/complete/v2/predict" ) var force = flag.String("f", "", "force") func...

Makes sense, never tested on Windows, would love to have a PR fixing this.

Hi there, I am not aware for any fall back option. If there is such, it will be nice to have it. Other than that, I can give you two...

Hi Right, it seems to be a bug... :disappointed: ``` $ ./test ./ go.mod go.sum -h -json main.go test ``` But `./test -json` adds space, and then `./test -json `...

Hey Chris, Can you elaborate more on the ecosystem that you are using? How the completion is invoked? What OS? What shell? How is the complete command installed in the...

I see, In Go's standard flags you can use either a single dash, or double dash, and it acts the same. This is why currently the complete library does not...

> So if I understand correctly, there isn't a good workaround for this unless Go changes the way it handles flags. Not exactly, this library is not directly related to...

Actually, there is another option, we can create an optional interface, in which we can add a function, for example `ListShortFlags() []rune`, which are flags of a single dash and...

Hey, Thanks for trying to solve this. 1. Backward compatibility is important. 2. Can you please point out the the broken tests? 3. This is due to Go's `flag` library...

Hi, sorry for keeping you waiting with the PR. There is more into it, i think. I'm not sure that the current behavior is wrong - From what I see...