darwin/csv2json — pull request #4 by rorygibson (2012-09-13 21:53:16+00:00)
Title: New command line options

I've switched off pretty formatting by default (as single-line is easier to handle when redirecting output on the command line) and added a "-p" option to enable it selectively.

Also, have introduced 2 new options, "-h" and -H", to allow control of headers from the command line (as this wasn't plumbed all the way through before).
"-h" allows basic provision of headers, in the situation where the file doesn't contain them.
"-H" will force the headers to be those from the command-line, ignoring whatever is in the first line of the file completely. This allows us to use different element names in JSON than the originator of the CSV uses, without editing the file manually.