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

mongoexport command line help shows multiple inconsistent default values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 3.4.7
    • 4.2.1
    • mongoexport
    • 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

              tim.fogarty@mongodb.com Tim Fogarty
              peter.schmidt Peter Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: