mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
10 lines
291 B
JavaScript
10 lines
291 B
JavaScript
|
|
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;
|
|
};
|
|
};
|