diff --git a/main.go b/main.go index 749eadc..38e2b03 100644 --- a/main.go +++ b/main.go @@ -91,9 +91,11 @@ func (c *Config) Parse() { if v.empty { if v.unset { v.parsed.err = errors.New(fmt.Sprintf("Environment variable %s not found. It should have been of type %s", k, v.dtype)) + c.env[k] = v } } else { v.parsed = parser(v.value) + c.env[k] = v } } }