#!/usr/bin/env node
var JSONStream = require('JSONStream')
var sra = require('./')

var args = process.argv.slice(2)

var command = args[0]
var srcFile = args[1]
var destDir = args[2]


var sraStream = sra(command)

sraStream([srcFile, destDir]).pipe(JSONStream.stringify(false)).pipe(process.stdout)
@@ -176,16 +176,23 @@
  args%5B2%5D
+ %7C%7C '.'
 %0A%0A%0Avar s

Fix CLI for when no ouput folder is specified