[SERVER-1574] bsondump lists wrong options Created: 05/Aug/10  Updated: 12/Jul/16  Resolved: 16/Aug/10

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.6.0
Fix Version/s: 1.7.0

Type: Bug Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to TOOLS-118 bsondump help text is copypasted from... Closed
Operating System: ALL
Participants:

 Description   

The tools headers include options to connect to a server and some other things (like specifying a collection to work with) which are not appropriate to this tool. This program should probably get its own explicit args listed for "--help" and a better description listed about json/debug output.

$ ./bsondump --help
usage: .\bsondump.exe [options] <bson filename>
options:
--help produce help message
-v [ --verbose ] be more verbose (include multiple times for more
verbosity e.g. -vvvvv)
-h [ --host ] arg mongo host to connect to ("left,right" for pairs)
--port arg server port. Can also use --host hostname:port
-d [ --db ] arg database to use
-c [ --collection ] arg collection to use (some commands)
-u [ --username ] arg username
-p [ --password ] arg password
--ipv6 enable IPv6 support (disabled by default)
--dbpath arg directly access mongod database files in the given
path, instead of connecting to a mongod server -
needs to lock the data directory, so cannot be used
if a mongod is currently accessing the same path
--directoryperdb if dbpath specified, each db is in a separate
directory
--objcheck validate object before inserting
--filter arg filter to apply before inserting
--type arg (=json) type of output: json,debug



 Comments   
Comment by Scott Hernandez (Inactive) [ 11/Dec/10 ]

It probably doesn't matter since there won't be more than one 1.6.x release before 1.8.

The 1.6.x code connects to the server and just acts differently, it seems.

Comment by Eliot Horowitz (Inactive) [ 11/Dec/10 ]

The fix for this spanned a bunch of things, and we've tweaked some more since.
Since this is not a functional issue, just aesthetic, generally falls outside the bounds of backporting.

Comment by Scott Hernandez (Inactive) [ 10/Dec/10 ]

Can you backport this?

Comment by auto [ 16/Aug/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Hide connection options for tools that don't connect SERVER-1574
http://github.com/mongodb/mongo/commit/d27b1646a179f4b2afd950a079c12967e90fd226

Generated at Thu Feb 08 02:57:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.