Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-84

Improve mongoexport help output for csv

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • 3.0.0-rc10
    • mongoexport
    • None
    • Iteration 0

    Description

      Using the --csv option requires that fields be specified using -f. This makes sense and if you don't specify fields mongoexport spits out a short error message:

      ./mongoexport -d bi -c game_event -o st_action.csv --csv
      connected to: 127.0.0.1
      assertion: 9998 you need to specify fields

      However, the help output doesn't currently mention that -csv requires -f:

      -f [ --fields ] arg comma separated list of field names e.g. -f
      name,age
      --csv export to csv instead of json

      The help output should mention that you have to use -f with --csv and explain why that is the case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: