mongoimport broken w/no-args

XMLWordPrintableJSON

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

      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:
            Shaun Verch (Inactive)
            Reporter:
            Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: