Skip to content

Commit

Permalink
Removed value from warning about skipping flags (#4491)
Browse files Browse the repository at this point in the history
* Enabled skipping of unkown flags from config in parser
* Added new unit test, expanded existing
* Add warning back in, without value

Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Nov 15, 2021
1 parent c77efe6 commit 535a919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/configfilearg/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (p *Parser) stripInvalidFlags(command string, args []string) ([]string, err
if validFlags[mArg] {
result = append(result, arg)
} else {
logrus.Warnf("Unknown flag %s found in config.yaml, skipping\n", arg)
logrus.Warnf("Unknown flag %s found in config.yaml, skipping\n", strings.Split(arg, "=")[0])
}
}
return result, nil
Expand Down

0 comments on commit 535a919

Please sign in to comment.