From fa059d1d35844cb303d64156c4d6ef4cf0f9bad1 Mon Sep 17 00:00:00 2001 From: John Chiu Date: Thu, 16 Oct 2014 11:15:01 -0700 Subject: [PATCH] Remove int conversion in getValue(). --- cli.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cli.js b/cli.js index 96f6af0..1c08077 100644 --- a/cli.js +++ b/cli.js @@ -734,10 +734,6 @@ cli.getValue = function (default_val, validate_func, err_msg) { value = argv.shift(); - if (value.match(/^[0-9]+$/)) { - value = parseInt(value, 10); - } - //Run the value through a validation/transformation function if specified if (validate_func) { value = validate_func(value);