Core Server
  1. Core Server
  2. SERVER-4224

Improve mongoexport help output for csv

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Trivial - P5 Trivial - P5
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: planned but not scheduled
    • Component/s: Tools
    • Labels:
      None
    • Backport:
      No
    • Operating System:
      ALL
    • # Replies:
      0
    • Last comment by Customer:
      false

      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.

        Activity

        • Comments
        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bernie Hackett
            Participants:
            Last commenter:
            Ian Whalen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since reply:
              2 years, 24 weeks, 1 day ago