From 9964d0e4fdfd3f532b0af9a30933ddcc98194c71 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Tue, 2 May 2017 13:30:49 -0700 Subject: [PATCH] now scale auto (#485) --- bin/now-scale.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/now-scale.js b/bin/now-scale.js index 6df3331..ae5266e 100755 --- a/bin/now-scale.js +++ b/bin/now-scale.js @@ -110,7 +110,10 @@ function guessParams() { return { min: scaleArg, max: optionalScaleArg } } else if (Number.isInteger(scaleArg) && optionalScaleArg === 'auto') { return { min: scaleArg, max: 'auto' } - } else if (!scaleArg && !optionalScaleArg) { + } else if ( + (!scaleArg && !optionalScaleArg) || + (scaleArg === 'auto' && !optionalScaleArg) + ) { return { min: 1, max: 'auto' } } help()