Skip to content

Commit

Permalink
econfig reset ConfigFile at start -- fixes env use of config after ma…
Browse files Browse the repository at this point in the history
…in sim
  • Loading branch information
rcoreilly committed May 25, 2024
1 parent 0615e5f commit 15f9ee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions econfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ var (
//
// Also processes -help or -h and prints usage and quits immediately.
func Config(cfg any, defaultFile ...string) ([]string, error) {
ConfigFile = ""

var errs []error
err := SetFromDefaults(cfg)
if err != nil {
Expand Down

0 comments on commit 15f9ee8

Please sign in to comment.