fix: prevent potential problems with an unbound parser.parse_args
MODIFY
lib/cli/parser.js
lib/cli/parser.js
@@ -38,7 +38,7 @@ function getParser (debug = false) {
// modify the parse_args function to insert the 'server' subcommand if the
// user hasn't specified a subcommand or the global help command
- parser._parse_args = parser.parse_args;
+ parser._parse_args = parser.parse_args.bind(parser);
parser.parse_args = function (args, namespace) {
if (_.isUndefined(args)) {
args = [...process.argv.slice(2)];

fix: prevent potential problems with an unbound parser.parse_args