mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[cli/dev] rely on commander for deduping argv (#14181)
Ineb317804b5
I started combining custom argv with the process's argv, and naively used union to combine the lists. This breaks cli arguments that are supposed to be repeated and isn't necessary since commander handles parsing the argv and deduping/merging based on config. (cherry picked from commit014dee07fa
)
This commit is contained in:
parent
4bd9534e39
commit
3ef06eb9fe
1 changed files with 1 additions and 2 deletions
|
@ -39,10 +39,9 @@ module.exports = class Worker extends EventEmitter {
|
|||
this.clusterBinder = new BinderFor(cluster);
|
||||
this.processBinder = new BinderFor(process);
|
||||
|
||||
const argv = _.union(baseArgv, opts.argv || []);
|
||||
this.env = {
|
||||
kbnWorkerType: this.type,
|
||||
kbnWorkerArgv: JSON.stringify(argv)
|
||||
kbnWorkerArgv: JSON.stringify(baseArgv.concat(opts.argv || []))
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue