You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there any options that can allow my application to just ignore unknown shorthand flag inputs and treat it as an argument rather than throw this error?
The text was updated successfully, but these errors were encountered:
@TomWright This is an interesting case. I'm busy today, but might find time to look this weekend. If you'd like to help me, writing a failing test would be great. Thanks.
I've found that you cannot pass arguments starting with a
-
to any cobra application.I've tracked it down to this section of code:
pflag/flag.go
Lines 962 to 965 in 85dd5c8
The example use-cases are here:
Are there any options that can allow my application to just ignore unknown shorthand flag inputs and treat it as an argument rather than throw this error?
The text was updated successfully, but these errors were encountered: