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