Skip to content
Snippets Groups Projects
Verified Commit 3671a8d8 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix copy only explicite values #3

parent bf75fade
No related branches found
No related tags found
No related merge requests found
......@@ -55,12 +55,9 @@ func (s *Settings[C]) assignValues(c cmd[C]) {
if c.proxyMapping[k] != "" {
p = c.proxyMapping[k]
s.mapping[p] = value
}
s.mapping[p] = value
return
})
}
......@@ -38,7 +38,7 @@ func (s *Settings[C]) Parse(args []string) *Settings[C] {
s.command.parse(r)
if s.mapping != nil && s.proxy != nil {
if s.mapping != nil && len(s.mapping) > 0 && s.proxy != nil {
s.proxy.Copy(s.mapping)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment