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

Improve mongoexport help output for csv

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.0.0-rc10
    • Affects Version/s: None
    • Component/s: mongoexport
    • Labels:
      None
    • Iteration 0

      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.

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

              Created:
              Updated:
              Resolved: