We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5000d0 commit 207b074Copy full SHA for 207b074
src/goNixArgParser/optionSet.go
@@ -80,7 +80,7 @@ func (s *OptionSet) isGroupSep(input string) bool {
80
81
func (s *OptionSet) isUdefFlag(input string) bool {
82
for _, prefix := range s.undefFlagPrefixes {
83
- if strings.HasPrefix(input, prefix) {
+ if len(input) > len(prefix) && strings.HasPrefix(input, prefix) {
84
return true
85
}
86
0 commit comments