[SERVER-8525] mongorestore -h is slightly incorrect in 2.4.0-rc0 Created: 12/Feb/13  Updated: 11/Jul/16  Resolved: 14/Feb/13

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.4.0-rc0
Fix Version/s: 2.4.0-rc1

Type: Bug Priority: Major - P3
Reporter: Mark porter Assignee: Daniel Pasette (Inactive)
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB 2.4.0-rc0


Operating System: ALL
Participants:

 Description   

[root@kconfigsvr1a ~]# mongorestore --version
mongorestore version 2.4.0-rc0
[root@kconfigsvr1a ~]# mongorestore -h
ERROR: required parameter is missing in 'host'
 
Import BSON files into MongoDB.
 
usage: mongorestore [options] [directory or filename to restore from]
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
  -h [ --host ] arg       mongo host to connect to ( <set name>/s1,s2 for sets)
  --port arg              server port. Can also use --host hostname:port
  --ipv6                  enable IPv6 support (disabled by default)
  --ssl                   use SSL for all connections
  -u [ --username ] arg   username
  -p [ --password ] arg   password
  --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        each db is in a separate directly (relevant only if 
                          dbpath specified)
  --journal               enable journaling (relevant only if dbpath specified)
  -d [ --db ] arg         database to use
  -c [ --collection ] arg collection to use (some commands)
  --objcheck              validate object before inserting
  --noobjcheck            validate object before inserting
  --filter arg            filter to apply before inserting
  --drop                  drop each collection before import
  --oplogReplay           replay oplog for point-in-time restore
  --oplogLimit arg        exclude oplog entries newer than provided timestamp 
                          (epoch[:ordinal])
  --keepIndexVersion      don't upgrade indexes to newest version
  --noOptionsRestore      don't restore collection options
  --noIndexRestore        don't restore indexes
  --w arg (=1)            minimum number of replicas per write

I presume it should read -

  --noobjcheck            don't validate object before inserting
 



 Comments   
Comment by auto [ 14/Feb/13 ]

Author:

{u'date': u'2013-02-14T20:17:35Z', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-8525 - fix noobjcheck copy/paste-o in --help
Branch: master
https://github.com/mongodb/mongo/commit/cec27ae57687c176f1b67f8189345c5bb3d4120c

Generated at Thu Feb 08 03:17:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.