Skip to content

Commit 9ff4ff1

Browse files
committed
Fixes issue if arg is "-"
1 parent bca17fa commit 9ff4ff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

command_line_parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (c *commandline) parse(arguments []string) (err error) {
1919
if arg == "--" {
2020
c.args = append(c.args, arguments[i+1:]...)
2121
break
22-
} else if strings.HasPrefix(arg, "-") {
22+
} else if strings.HasPrefix(arg, "-") && arg != "-" {
2323
peekedNext, err := c.parseOneArg(i, arguments)
2424
if err != nil {
2525
return err

0 commit comments

Comments
 (0)