mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
354 B
17 lines
354 B
#!/usr/bin/env node
|
|
|
|
var cli = require('cli');
|
|
|
|
var output_file = function (file) {
|
|
cli.withInput(file, function (line, sep, eof) {
|
|
if (!eof) {
|
|
cli.output(line + sep);
|
|
} else if (cli.args.length) {
|
|
output_file(cli.args.shift());
|
|
}
|
|
});
|
|
};
|
|
|
|
if (cli.args.length) {
|
|
output_file(cli.args.shift());
|
|
}
|