From 59838bcd850e5292329c81827c1fbdda32ca504c Mon Sep 17 00:00:00 2001 From: Charlie Hoover Date: Thu, 27 Apr 2017 13:32:24 -0400 Subject: [PATCH] [#188] Allow disabling of cache saving --- bin/cli.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/cli.js b/bin/cli.js index f016857..267ee6f 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -82,7 +82,11 @@ if (argv.version) { process.exit(0); } -if (argv.cache) { +if (argv.cache === 0 || argv.cache) { + var loweredCache = argv.cache.toLowerCase(); + if (loweredCache === 'false' || loweredCache === 'f') { + argv.cache = 0; + } (options = options || {}).cache = argv.cache; }