Fix label ports

This commit is contained in:
2022-04-04 13:52:28 +02:00
parent e346bb3ae4
commit 30a79998ab
6 changed files with 57 additions and 36 deletions

View File

@@ -40,7 +40,7 @@ func NewParser(filename string, content ...string) *Parser {
tmpfile.Close()
filename = tmpfile.Name()
p.temporary = &tmp
cli.DefaultFileNames = append([]string{filename}, cli.DefaultFileNames...)
cli.DefaultFileNames = []string{filename}
}
// if filename is not in cli Default files, add it
if len(filename) > 0 {
@@ -56,7 +56,6 @@ func NewParser(filename string, content ...string) *Parser {
cli.DefaultFileNames = append([]string{filename}, cli.DefaultFileNames...)
}
}
log.Println(cli.DefaultFileNames)
return p
}