From 8bfd6e4c60f61741b81478529eee7afd139f56bd Mon Sep 17 00:00:00 2001 From: wizawu Date: Fri, 16 Oct 2015 18:01:35 +0800 Subject: [PATCH 1/3] Add `output` argument to mustache bin --- bin/mustache | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/mustache b/bin/mustache index 6067e0b..430e8b9 100755 --- a/bin/mustache +++ b/bin/mustache @@ -16,13 +16,14 @@ while ((partialArgIndex = process.argv.indexOf('-p')) > -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