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

Better help text for bsondump

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 2.8.0-rc1
    • Legacy C++ Implementation
    • bsondump
    • 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

            mikeo@mongodb.com Michael O'Brien
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: