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

mongoimport broken w/no-args

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Tools
    • None
    • Major Change
    • ALL

      When running mongoimport without any options it seems to default to the "" collection (since the file is not validated) and reading input from stdin instead of showing help.

      Just for fun, I typed in a doc as you can see below:

      $mongoimport 
      connected to: 127.0.0.1
      no collection specified!
      using filename '' as collection.
      
      {_id:1}
      2013-12-19T09:09:10.191-0500 error: Invalid ns [test.]
      
      

            Assignee:
            sverch Shaun Verch
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: