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

mongoexport command line help not consistent

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: