Set extended files as overrides config

This commit is contained in:
2022-06-03 16:44:08 +02:00
parent 4cf470f222
commit 918baa2ce0

View File

@@ -53,7 +53,10 @@ func NewParser(filename []string, content ...string) *Parser {
} }
// add the file at first position // add the file at first position
if !found { if !found {
cli.DefaultFileNames = append(filename, cli.DefaultFileNames...) cli.DefaultFileNames = append([]string{filename[0]}, cli.DefaultFileNames...)
}
if len(filename) > 1 {
cli.DefaultOverrideFileNames = append(filename[1:], cli.DefaultOverrideFileNames...)
} }
} }