Commit 9e8bae25 by ziheng Committed by Tianqi Chen

[FIX] Fix target warning (#560)

* [FIX] Fix target warning

* [FIX] Deduplicate options

* Fix

* Fix
parent 6894d42b
......@@ -56,6 +56,8 @@ def _merge_opts(opts, new_opts):
if isinstance(new_opts, str):
new_opts = new_opts.split()
if new_opts:
opt_set = set(opts)
new_opts = [opt for opt in new_opts if opt not in opt_set]
return opts + new_opts
return opts
......
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