Skip to content

Commit 6a1b256

Browse files
Isabella Siukay-kim
authored andcommitted
DOCS-7836 clarify --host for connecting to secondaries
1 parent 0386bb4 commit 6a1b256

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

source/includes/options-shared.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,17 @@ description: |
7777
7878
.. code-block:: none
7979
80-
<replSetName>/<hostname1><:port>,<hostname2><:port>,<...>
80+
--host <replSetName>/<hostname1><:port>,<hostname2><:port>,<...>
8181
82-
You can always connect directly to a single MongoDB instance by
83-
specifying the host and port number directly.
82+
When specifying the replica set list format, {{program}} always connects to
83+
the :term:`primary <Primary>`.
84+
85+
You can also connect to any single member of the replica set by specifying
86+
the host and port of only that member:
87+
88+
.. code-block:: none
89+
90+
--host <hostname1><:port>
8491
8592
.. versionchanged:: 3.0.0
8693
If you use IPv6 and use the ``<address>:<port>`` format, you must

0 commit comments

Comments
 (0)