#!/usr/bin/env node var fs = require('fs'), path = require('path'); var Mustache = require('..'); var pkg = require('../package'); var partials = {}; var partialsPaths = []; var partialArgIndex = -1; while ((partialArgIndex = process.argv.indexOf('-p')) > -1) { partialsPaths.push(process.argv.splice(partialArgIndex, 2)[1]); } var viewArg = process.argv[2]; var templateArg = process.argv[3]; var outputArg = process.argv[4]; if (hasVersionArg()) { return console.log(pkg.version); } if (!templateArg || !viewArg) { console.error('Syntax: mustache