-
Type: Bug
-
Resolution: Fixed
-
Priority: Trivial - P5
-
Affects Version/s: 3.6.3
-
Component/s: mongoexport
-
None
-
Environment:MacOS High Sierra (via Brew)
-
0.5
-
Needed
When running `mongoexport --help`, I've noticed some of the options are not consistent.
{{uri options:
--uri=mongodb-uri mongodb uri connection string}}
Website documents shows that no "=" is needed with the `--uri` option. See https://docs.mongodb.com/manual/reference/program/mongoexport/#cmdoption-mongoexport-uri
{{output options:
-f, --fields=<field>[,<field>]* comma separated list of field names (required for exporting CSV) e.g. -f "name,age"
--fieldFile=<filename> file with field names - 1 per line
--type=<type> the output format, either json or csv (defaults to 'json') (default: json)}}
The `--type` option has both "(defaults to 'json')" and "(default: json)".
{{querying options:
-q, --query=<json> query filter, as a JSON string, e.g., '{x:{$gt:1}}'
--queryFile=<filename> path to a file containing a query filter (JSON)
-k, --slaveOk allow secondary reads if available (default true) (default: false)}}
The `-k` option shows that the default is both true and false.
- related to
-
TOOLS-1772 mongoexport command line help shows multiple inconsistent default values
- Closed
-
TOOLS-1806 Don't include default values in option descriptions since they are echoed by default
- Closed