title: What does “too many positional options” mean when doing a mongorestore?
body: <p>I downloaded a mongodb dump. Now i am trying to move files from the dump to my mongodb location. I'm using mongorestore --dbpath [mongodb path] [dump path] cmd to do this. But i am seeing the too many positional options error in the command prompt. Can anyone help me with this issue. </p>
  
  <p>This is the error from the command line:</p>
  
  <pre><code>C:\Documents and Settings\&gt;mongorestore -dbpath C:\Program Files\Mon
  goDb\data\db C:\Documents and Settings\My Documents\localadventure
  s\localadventures
  ERROR: too many positional options
  
  Import BSON files into MongoDB.
  </code></pre>
  
  <p>I tried again today and saw the following message in my cmd prompt:</p>
  
  <pre><code>C:\&gt;mongorestore --dbpath "C:\Program Files\MongoDb\data\db" "C:\Documents and S
  ettings\seemanapallik\My Documents\localadventures\localadventures"
  Mon Dec 23 09:05:01.515 [tools] C:\Documents and Settings\seemanapallik\My Docum
  ents\localadventures\localadventures\adventure.bson
  Mon Dec 23 09:05:01.515 [tools]         going into namespace [localadventures.ad
  venture]
  Mon Dec 23 09:05:01.531 [tools] warning: Restoring to localadventures.adventure
  without dropping. Restored data will be inserted without raising errors; check y
  our server log
  1 objects found
  Mon Dec 23 09:05:01.546 [tools]         Creating index: { key: { _id: 1 }, ns: "
  localadventures.adventure", name: "_id_" }
  Mon Dec 23 09:05:01.546 [tools] C:\Documents and Settings\seemanapallik\My Docum
  ents\localadventures\localadventures\patch_version.bson
  Mon Dec 23 09:05:01.546 [tools]         going into namespace [localadventures.pa
  tch_version]
  Mon Dec 23 09:05:01.546 [tools] warning: Restoring to localadventures.patch_vers
  ion without dropping. Restored data will be inserted without raising errors; che
  ck your server log
  2 objects found
  Mon Dec 23 09:05:01.562 [tools]         Creating index: { key: { _id: 1 }, ns: "
  localadventures.patch_version", name: "_id_" }
  Mon Dec 23 09:05:01.562 [tools] C:\Documents and Settings\seemanapallik\My Docum
  ents\localadventures\localadventures\PaxHeader\adventure.bson
  Mon Dec 23 09:05:01.562 [tools]         going into namespace [PaxHeader.adventur
  e]
  assertion: 16619 code FailedToParse: FailedToParse: Expecting '{': offset:0
  Mon Dec 23 09:05:01.578 dbexit:
  Mon Dec 23 09:05:01.578 [tools] shutdown: going to close listening sockets...
  Mon Dec 23 09:05:01.578 [tools] shutdown: going to flush diaglog...
  Mon Dec 23 09:05:01.578 [tools] shutdown: going to close sockets...
  Mon Dec 23 09:05:01.578 [tools] shutdown: waiting for fs preallocator...
  Mon Dec 23 09:05:01.578 [tools] shutdown: closing all files...
  Mon Dec 23 09:05:01.609 [tools] closeAllFiles() finished
  Mon Dec 23 09:05:01.609 [tools] shutdown: removing fs lock...
  Mon Dec 23 09:05:01.609 dbexit: really exiting now
  </code></pre>