[SERVER-270] mongofiles bad error message (and is the --help right?) Created: 30/Aug/09  Updated: 12/Jul/16  Resolved: 01/Sep/09

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Bug Priority: Minor - P4
Reporter: Dwight Merriman Assignee: Michael Dirolf
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

poor error msg:

~/mongo ./mongofiles --command put SConstruct
terminate called after throwing an instance of 'boost::program_options::multiple_occurrences'
what(): multiple_occurrences
Abort trap

The following seemed to work, but I don't get this syntax out of the —help output – fix --help?:

~/mongo ./mongofiles put SConstruct

~/mongo ./mongofiles --help
files options:
--help produce help message
-h [ --host ] arg mongo host to connect to
-d [ --db ] arg database to use
-c [ --collection ] arg collection to use (some commands)
-u [ --username ] arg username
-p [ --password ] arg password
--dbpath arg directly access mongod data files in this path,
instead of connecting to a mongod instance
-v [ --verbose ] be more verbose (include multiple times for more
verbosity e.g. -vvvvv)
--command arg command (list|search|put|get)
--file arg filename for get|put
list - list all files. takes an optional filename. the file has to start with the filename
search - search all files for something that contains the string



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Sep/09 ]

released in 1.1.0

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