Commit 7517f44
authored
feat(cli-repl): fix files as positional arguments and add --file MONGOSH-769 (#890)
- If the first positional argument ends in .mongodb or .js and is not a
connection string, treat it as a filename.
- Add a `--file` (`-f`) flag for specifying filenames that avoids this
ambiguity.
- Internally, avoid referring to positional arguments in general and
be specific about whether the connection specifier or the filenames
are being accessed
- As drive-by fixes, fix the spelling of `tlsAllowInvalidHostname` and
drop the extra unnecessary `start` argument handling.1 parent bbf2a73 commit 7517f44
File tree
12 files changed
+728
-623
lines changed- packages
- cli-repl
- src
- i18n/src/locales
- service-provider-core/src
- shell-api/src
12 files changed
+728
-623
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
0 commit comments