max-mapper / csv-write-stream

A CSV encoder stream that produces properly escaped CSVs
BSD 2-Clause "Simplified" License
204 stars 37 forks source link

fix up the CLI #22

Closed notslang closed 8 years ago

notslang commented 8 years ago

Now it has a proper help page and arg parsing! :tada:

$ csv-write --help
usage: csv-write [-h] [-v] [--separator SEPARATOR] [--newline NEWLINE]
                 [--headers HEADERS [HEADERS ...]] [--no-send-headers]

A CSV encoder stream that produces properly escaped CSVs. JSON is read from 
STDIN, formatted to CSV, and written to STDOUT.

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  --separator SEPARATOR
                        The separator character to use. Defaults to ','.
  --newline NEWLINE     The newline character to use. Defaults to $'\n'.
  --headers HEADERS [HEADERS ...]
                        The list of headers to use. If omitted, the keys of 
                        the first row written to STDIN will be used
  --no-send-headers     Don't print the header row.
max-mapper commented 8 years ago

wow nice

max-mapper commented 8 years ago

i published to npm, and added you as a maintainer http://openopensource.org/ style, thanks!

notslang commented 8 years ago

Cool, thanks!