Commit c9acccea authored by deepakgarg's avatar deepakgarg

Fixes #183. Not modifying the mutating opts object per comments

parent 1b028fbf
......@@ -137,7 +137,7 @@ func checkAndConvertOptions(root *Command, opts OptMap, path []string) (OptMap,
}
for _, name := range opt.Names() {
if _, ok := opts[name]; name != k && ok {
if _, ok := options[name]; name != k && ok {
return options, fmt.Errorf("Duplicate command options were provided (%q and %q)",
k, name)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment