Skip to content

Commit

Permalink
debug output tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
integrii committed Jan 18, 2020
1 parent 3980c6b commit 6d107e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ func findArgsNotInParsedValues(args []string, parsedValues []parsedValue) []stri
arg := parseFlagToName(a)

// skip args that start with 'test.' because they are injected with go test
debugPrint("flagsNotParsed: checking arg:", arg)
debugPrint("flagsNotParsed: checking arg for test prefix:", arg)
if strings.HasPrefix(a, "test.") {
debugPrint("skipping test. prefixed arg named:", arg)
debugPrint("skipping test. prefixed arg has test prefix:", arg)
continue
}
debugPrint("flagsNotParsed: flag is unused:", 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 6d107e8

Please sign in to comment.