fix: do not insert server for --help, -v and --version
MODIFY
lib/cli/parser.js
lib/cli/parser.js
@@ -43,7 +43,7 @@ function getParser (debug = false) {
if (_.isUndefined(args)) {
args = [...process.argv.slice(2)];
}
- if (!_.includes([DRIVER_TYPE, PLUGIN_TYPE, 'server', '-h'], args[0])) {
+ if (!_.includes([DRIVER_TYPE, PLUGIN_TYPE, 'server', '-h', '--help', '-v', '--version'], args[0])) {
args.splice(0, 0, 'server');
}
return this._parse_args(args, namespace);

fix: do not insert server for --help, -v and --version (#15005)