mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[start] send extra args to the kibana process
Original commit: elastic/kibana-plugin-helpers@ce943ca67c
This commit is contained in:
parent
ec965190d6
commit
6790982d08
3 changed files with 20 additions and 7 deletions
|
@ -0,0 +1,10 @@
|
|||
|
||||
module.exports = function enableCollectingUnknownOptions(command) {
|
||||
var origParse = command.parseOptions;
|
||||
command.allowUnknownOption();
|
||||
command.parseOptions = function (argv) {
|
||||
let opts = origParse.call(this, argv);
|
||||
this.unkownOptions = opts.unknown;
|
||||
return opts;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue