SERVER-28072 got a piece of logic backwards leading to `mongo host/db` being parsed as `mongo db/host`. Reverse that logic to return to correct parsing.
- is duplicated by
-
SERVER-33059 Shell no longer accepts legacy connection strings
- Closed
-
TOOLS-1939 Shell transposes DB and host in [db Address] specification
- Closed
- related to
-
SERVER-28072 Running a script using 'mongo' on replication set fails
- Closed