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

Better help text for bsondump

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: Legacy C++ Implementation
    • Fix Version/s: 2.8.0-rc1
    • Component/s: bsondump
    • Labels:
      None

      Description

      Display BSON objects in a data file.
       
      usage: bsondump [options] <bson filename>
      options:
        --help                produce help message
        -v [ --verbose ]      be more verbose (include multiple times for more 
                              verbosity e.g. -vvvvv)
        --version             print the program's version and exit
        --objcheck            validate object before inserting (default)
        --noobjcheck          don't validate object before inserting
        --filter arg          filter to apply before inserting
        --type arg (=json)    type of output: json,debug

      These options refer to "inserting" but bsondump is not inserting anything. This is confusing. These help texts should be more consistent with the bsondump documentation.

      --objcheck serves no purpose anymore since 2.4. Is this kept for historical reasons? Or should it be removed and a sentence to --noobjcheck added (by default, bsondump validates objects).

        Attachments

          Activity

            People

            Assignee:
            mpobrien Michael O'Brien
            Reporter:
            thomasr Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: