-
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
Custom completion logic doesn't support multiple shorthand flags together #1257
Comments
I completely missed this scenario! Thanks @Luap99 for noticing. Will you be working on it? |
Yes I just looked into it. Only a few lines to change. |
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
I'm astonished that I didn't catch this earlier I use this syntax all the time. |
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This issue is being marked as stale due to a long period of inactivity |
Waiting for review on #1258 |
This issue is being marked as stale due to a long period of inactivity |
Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to spf13#1257. Fixes spf13#1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
from: https://github.com/spf13/pflag#command-line-flag-syntax
The custom completion logic does not respect this and will error in that case. (no completion)
Consider the following simple example:
The text was updated successfully, but these errors were encountered: