mongoimport outputs incorrect connected host when -
uri is used instead of --host. For example, when -host is used as below:
It outputs correctly the replica set it connects to:
However, when --uri is used:
It outputs "localhost" as the default value of cluster:
Similarly when the value of the --uri parameter is mongodb+srv format.
This is due to the default value assignment in https://github.com/mongodb/mongo-tools/blob/r4.1.6/mongoimport/mongoimport.go#L348-L351