Browse Source

now scale <id> auto (#485)

master
Tim Neutkens 8 years ago
committed by Leo Lamprecht
parent
commit
9964d0e4fd
  1. 5
      bin/now-scale.js

5
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()

Loading…
Cancel
Save