-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Square brackets in the description causes problems with zsh #1129
Comments
This seems to be a problem if you have brackets in the flag line, and I can't figure out how to mitigate this. For example:
This causes an issue. How would you mitigate this using #1070? |
Hi @bufdev, #1070 will fix this problem automatically, nothing special for you to do. However, #1070 is not yet part of an official Cobra release, which is why it is not working for you. You could choose to point your |
Ah perfect! Thank you so much, makes sense! |
I think I found a bug with zsh completion in cobra 1.0.0: If I put square brackets in a command description they do not get escaped correctly causing problems.
Here there's an example of the line causing problems.
I "patched" this behaviour with:
I think this will be fixed in #1070 but I'm opening that just for reference
The text was updated successfully, but these errors were encountered: