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
Cobra is fully POSIX-compliant, in which the argument -- terminates all options; any following arguments are treated as non-option arguments, even if they begin with a hyphen. (See here for more)
Therefore, the flags suggestions should be disabled if user has already typed a pure "--" token, plus any space, before cursor.
I made a small change to func findSuggestions in cobra-prompt.go and tested it should work
Hi
Cobra is fully POSIX-compliant, in which the argument -- terminates all options; any following arguments are treated as non-option arguments, even if they begin with a hyphen. (See here for more)
Therefore, the flags suggestions should be disabled if user has already typed a pure "--" token, plus any space, before cursor.
I made a small change to
func findSuggestions
in cobra-prompt.go and tested it should workThe text was updated successfully, but these errors were encountered: