Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2001

mongoexport command line help not consistent

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 4.2.1
    • Affects Version/s: 3.6.3
    • Component/s: mongoexport
    • None
    • Environment:
      MacOS High Sierra (via Brew)

      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.

            Assignee:
            tim.fogarty@mongodb.com Tim Fogarty
            Reporter:
            danielmcq Daniel McQuiston
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: