Skip to content

Commit

Permalink
fixed error with parsing test. flags
Browse files Browse the repository at this point in the history
  • Loading branch information
integrii committed Jan 18, 2020
1 parent 6d107e8 commit 1ab785b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ func findArgsNotInParsedValues(args []string, parsedValues []parsedValue) []stri

// skip args that start with 'test.' because they are injected with go test
debugPrint("flagsNotParsed: checking arg for test prefix:", arg)
if strings.HasPrefix(a, "test.") {
if strings.HasPrefix(arg, "test.") {
debugPrint("skipping test. prefixed arg has test prefix:", arg)
continue
}
debugPrint("flagsNotParsed: flag is not a .test flag:", arg)
debugPrint("flagsNotParsed: flag is not a test. flag:", arg)

// indicates that we found this arg used in one of the parsed values. Used
// to indicate which values should be added to argsNotUsed.
Expand Down

0 comments on commit 1ab785b

Please sign in to comment.