SIGN IN SIGN UP
spf13 / cobra UNCLAIMED

A Commander for modern Go CLI interactions

0 0 142 Go

completions: do not detect arguments with dash as 2nd char as flag (#1817)

Fixes #1816

Previously, arguments with a dash as the second character (e.g., 1-ff00:0:1)
were detected as a flag by mistake. This resulted in auto completion misbehaving
if such an argument was last in the argument list during invocation.
D
Dominik Roos committed
b4f979ae352828a0153281b590771ce9588d67f8
Parent: bf11ab6
Committed by GitHub <noreply@github.com> on 1/3/2023, 12:58:36 AM