Allow multiple Vars{} to be passed.

This commit is contained in:
Alec Thomas
2019-01-12 21:48:24 +11:00
parent 9b2e9343a0
commit 443709c0bb
+3 -1
View File
@@ -25,7 +25,9 @@ type Vars map[string]string
// Apply lets Vars act as an Option.
func (v Vars) Apply(k *Kong) error {
k.vars = v
for key, value := range v {
k.vars[key] = value
}
return nil
}