Skip to content

Commit

Permalink
fix go version support?
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynn Cyrin committed Sep 12, 2019
1 parent 223e217 commit 6da413a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Expand Up @@ -253,7 +253,7 @@ func reorderArgs(commandFlags []Flag, args []string) []string {

func argIsFlag(commandFlags []Flag, arg string) bool {
// this line turns `--flag` into `flag`
arg = strings.ReplaceAll(arg, "-", "")
arg = strings.Replace(arg, "-", "", -1)
// this line turns `flag=value` into `flag`
arg = strings.Split(arg, "=")[0]
// look through all the flags, to see if the `arg` is one of our flags
Expand Down

0 comments on commit 6da413a

Please sign in to comment.