mongoexport command line help shows multiple inconsistent default values

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
              Reporter:
              Peter Schmidt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: