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 f0d17ca commit b8e00f6Copy full SHA for b8e00f6
src/common/config.ts
@@ -250,6 +250,9 @@ function parseCliConfig(args: string[]): CliOptions {
250
};
251
252
const positionalArguments = parsed._ ?? [];
253
+ // if we have a positional argument that matches a connection string
254
+ // store it as the connection specifier and remove it from the argument
255
+ // list, so it doesn't get misunderstood by the mongosh args-parser
256
if (!parsed.nodb && isConnectionSpecifier(positionalArguments[0])) {
257
parsed.connectionSpecifier = positionalArguments.shift();
258
}
0 commit comments