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

Better help text for bsondump

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.8.0-rc1
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: bsondump
    • None

      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).

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

              Created:
              Updated:
              Resolved: