Skip to content

Commit

Permalink
fix(ci): pass allowExcessArguments to commander
Browse files Browse the repository at this point in the history
  • Loading branch information
eiri committed Jan 6, 2025
1 parent ece6bde commit 83b7871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function parseBackupArgs() {
Number)
.option('-u, --url <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
Expand Down Expand Up @@ -117,6 +118,7 @@ function parseRestoreArgs() {
Number)
.option('-u, --url <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
Expand Down

0 comments on commit 83b7871

Please sign in to comment.