diff --git a/includes/parser.js b/includes/parser.js index 1e9fd64c..a29019c7 100644 --- a/includes/parser.js +++ b/includes/parser.js @@ -62,6 +62,7 @@ function parseBackupArgs() { Number) .option('-u, --url ', cliutils.getUsage('URL of the CouchDB/Cloudant server', defaults.url)) + .allowExcessArguments() .parse(process.argv); // Remove defaults that don't apply when using shallow mode @@ -117,6 +118,7 @@ function parseRestoreArgs() { Number) .option('-u, --url ', cliutils.getUsage('URL of the CouchDB/Cloudant server', defaults.url)) + .allowExcessArguments() .parse(process.argv); // Apply the options in order so that the CLI overrides env vars and env variables diff --git a/package-lock.json b/package-lock.json index 9d2fe05c..a32f4794 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@ibm-cloud/cloudant": "0.11.0", - "commander": "12.1.0", + "commander": "13.0.0", "debug": "4.4.0" }, "bin": { @@ -1200,10 +1200,9 @@ } }, "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "license": "MIT", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-13.0.0.tgz", + "integrity": "sha512-oPYleIY8wmTVzkvQq10AEok6YcTC4sRUBl8F9gVuwchGVUCTbl/vhLTaQqutuuySYOsu8YTgV+OxKc/8Yvx+mQ==", "engines": { "node": ">=18" } diff --git a/package.json b/package.json index aac057ec..719df453 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@ibm-cloud/cloudant": "0.11.0", - "commander": "12.1.0", + "commander": "13.0.0", "debug": "4.4.0" }, "peerDependencies": {