Fix custom completion args for bash#320
Conversation
|
@swift-ci please test |
|
@Frizlab could describe a simple concrete example where the current behavior returns the wrong result? |
|
Here is an example! https://gitlab.com/frizlab-demo-projects/swift-argument-parser-example-for-pr-320 To see the bug, load the completion script in bash, and type You’ll see the args array only contain one entry, but it should be containing three. With my fix, it does contain the three elements. As a comparison one can try zsh completion, which does indeed show the three arguments as expected. |
|
Thanks for this fix, @Frizlab! 🎉 |
I’ve noticed when using a custom completion in bash, the custom completion handler does not receive all the arguments as would be expected. This PR fixes that.
Checklist