Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 07ce6e8

Browse files
authored
Update args.go
1 parent c7259f8 commit 07ce6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/base/args.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (pa *ParseArgs) parseInternalShort(a string, argv []string, ac Receiver) er
103103
return ErrorCat("unregistered option '-", a, "'")
104104
}
105105
var oa string
106-
if len(a) > 2 {
106+
if len(a) >= 2 {
107107
if a[1] == '=' {
108108
oa = a[2:]
109109
} else {

0 commit comments

Comments
 (0)