diff --git a/goopt.go b/goopt.go index 6c54837..21030b1 100644 --- a/goopt.go +++ b/goopt.go @@ -550,15 +550,6 @@ func match(x string, allflags []string) string { } } out := "" - for _, f := range allflags { - if len(f) >= len(x) && f[0:len(x)] == x { - if out == "" { - out = f - } else { - return "" - } - } - } return out }