Reformatting list of options again

This commit is contained in:
azhebel
2017-02-07 17:29:37 +03:00
parent 990ab8b04f
commit 8d0f72adc6
2 changed files with 44 additions and 44 deletions

View File

@@ -27,49 +27,49 @@ By default, the results are sorted by ascending query count.
Options Options
------- -------
-?, --help ``-?``, ``--help``
Show help and exit Show help and exit
-a, --authenticationDatabase ``-a``, ``--authenticationDatabase``
Specifies the database used to establish credentials and privileges Specifies the database used to establish credentials and privileges
with a MongoDB server. with a MongoDB server.
By default, the ``admin`` database is used. By default, the ``admin`` database is used.
-c, --no-version-check ``-c``, ``--no-version-check``
Don't check for updates Don't check for updates
-d, --database ``-d``, ``--database``
Specifies which database to profile Specifies which database to profile
-l, --log-level ``-l``, ``--log-level``
Specifies the log level: Specifies the log level:
``panic``, ``fatal``, ``error``, ``warn``, ``info``, ``debug error`` ``panic``, ``fatal``, ``error``, ``warn``, ``info``, ``debug error``
-n, --limit ``-n``, ``--limit``
Limits the number of queries to show Limits the number of queries to show
-o, --order-by ``-o``, ``--order-by``
Specifies the sorting order using fields: Specifies the sorting order using fields:
``count``, ``ratio``, ``query-time``, ``docs-scanned``, ``docs-returned``. ``count``, ``ratio``, ``query-time``, ``docs-scanned``, ``docs-returned``.
Adding a hypen (``-``) in front of a field denotes reverse order. Adding a hypen (``-``) in front of a field denotes reverse order.
For example: ``--order-by="count,-ratio"``. For example: ``--order-by="count,-ratio"``.
-p, --password ``-p``, ``--password``
Specifies the password to use when connecting to a server Specifies the password to use when connecting to a server
with authentication enabled. with authentication enabled.
Do not add a space between the option and its value: ``-p<password>``. Do not add a space between the option and its value: ``-p<password>``.
If you specify the option without any value, If you specify the option without any value,
you will be prompted for the password. you will be prompted for the password.
-u, --user ``-u``, ``--user``
Specifies the user name for connecting to a server Specifies the user name for connecting to a server
with authentication enabled. with authentication enabled.
-v, --version ``-v``, ``--version``
Show version and exit Show version and exit
Output Example Output Example
============== ==============

View File

@@ -23,23 +23,23 @@ by running administration commands and formatting the output.
Options Options
------- -------
-a, --auth-db ``-a``, ``--auth-db``
Specifies the database used to establish credentials and privileges Specifies the database used to establish credentials and privileges
with a MongoDB server. with a MongoDB server.
By default, the ``admin`` database is used. By default, the ``admin`` database is used.
-p, --password ``-p``, ``--password``
Specifies the password to use when connecting to a server Specifies the password to use when connecting to a server
with authentication enabled. with authentication enabled.
Do not add a space between the option and its value: ``-p<password>``. Do not add a space between the option and its value: ``-p<password>``.
If you specify the option without any value, If you specify the option without any value,
``pt-mongodb-summary`` will ask for password interactively. ``pt-mongodb-summary`` will ask for password interactively.
-u, --user ``-u``, ``--user``
Specifies the user name for connecting to a server Specifies the user name for connecting to a server
with authentication enabled. with authentication enabled.
Output Example Output Example
============== ==============