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

mongoexport command line help shows multiple inconsistent default values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.4.7
    • Fix Version/s: 4.2.1
    • Component/s: mongoexport
    • Labels:
      None

      Description

      On macOS 10.12.6:

      $ mongoexport --help
      ...
        -k, --slaveOk                                   allow secondary reads if
                                                        available (default true)
                                                        (default: false)
      

      Can the value of --slaveOk default to both true and false at the same time?

      The presence of multiple default values also appears to affect type:

      $ mongoexport --help
      ...
            --type=<type>                               the output format, either
                                                        json or csv (defaults to
                                                        'json') (default: json)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tim.fogarty Tim Fogarty
                Reporter:
                peter.schmidt Peter Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: