Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-270

mongofiles bad error message (and is the --help right?)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1.0
    • Affects Version/s: None
    • Component/s: Tools
    • None

      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

            Assignee:
            mike Michael Dirolf
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: