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

mongoexport command line help shows multiple inconsistent default values

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.2.1
    • Affects Version/s: 3.4.7
    • Component/s: mongoexport
    • None

      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)
      

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

              Created:
              Updated:
              Resolved: