We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c421c2 commit bc346cfCopy full SHA for bc346cf
src/common/config.ts
@@ -240,6 +240,9 @@ function parseCliConfig(args: string[]): CliOptions {
240
};
241
242
const positionalArguments = parsed._ ?? [];
243
+ // if we have a positional argument that matches a connection string
244
+ // store it as the connection specifier and remove it from the argument
245
+ // list, so it doesn't get misunderstood by the mongosh args-parser
246
if (!parsed.nodb && isConnectionSpecifier(positionalArguments[0])) {
247
parsed.connectionSpecifier = positionalArguments.shift();
248
}
0 commit comments