From cb18e15022c58e7cad9e2a971aa649f50f1c5527 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 23 Mar 2021 13:52:30 +0100 Subject: [PATCH] update map --- main.go | 2 ++ 1 file changed, 2 insertions(+) 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 } } }