shawnbot / tito

Tables In, Tables Out
Creative Commons Zero v1.0 Universal
22 stars 0 forks source link

Alternative to format dot syntax? #9

Open shawnbot opened 9 years ago

shawnbot commented 9 years ago

Because this is unintuitive:

tito --read.format csv --read.delimiter "|"

this might be better, and saves precious characters:

tito --read csv --read-delimiter "|"
shawnbot commented 9 years ago

Also worth considering: subarg, e.g.

tito --read [ csv --delimiter "|" ] --write tsv

This would make it easier to create the streams in cli.js:

var read = (typeof options.read === 'object')
  ? formats.createReadStream(options.read._[0], options.read)
  : formats.createReadStream(options.read);