Skip to content

Commit

Permalink
Fixes issue if arg is "-"
Browse files Browse the repository at this point in the history
  • Loading branch information
subchen committed Mar 19, 2018
1 parent bca17fa commit 9ff4ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command_line_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (c *commandline) parse(arguments []string) (err error) {
if arg == "--" {
c.args = append(c.args, arguments[i+1:]...)
break
} else if strings.HasPrefix(arg, "-") {
} else if strings.HasPrefix(arg, "-") && arg != "-" {
peekedNext, err := c.parseOneArg(i, arguments)
if err != nil {
return err
Expand Down

0 comments on commit 9ff4ff1

Please sign in to comment.