prefer input

This commit is contained in:
Tony Brix 2018-03-28 10:41:02 -05:00
parent 0dcb02f643
commit f03a576063

View File

@ -120,11 +120,11 @@ function main(argv, callback) {
}
function getData(callback) {
if (string) {
return callback(null, string);
}
if (!input) {
if (files.length <= 2) {
if (string) {
return callback(null, string);
}
return getStdin(callback);
}
input = files.pop();