quick fix for bin

This commit is contained in:
Christopher Jeffrey 2011-12-04 22:07:19 -06:00
parent 3e2d9223c7
commit ec884486d0

View File

@ -83,11 +83,11 @@ var main = function(argv) {
}
}
if (!input && files.length !== 1) {
if (!input && files.length !== 2) {
input = files.pop();
}
if (files.length === 1) {
if (!input && files.length === 2) {
var stdin = process.openStdin()
, buff = [];