From 1a93a3e7da6055bedb5d9d9b78492e86dbbc3e8f Mon Sep 17 00:00:00 2001 From: agirbal Date: Tue, 4 Oct 2011 23:41:04 -0700 Subject: - SERVER-1507: option as string must be converted to boolean - SERVER-3629: implementation finished --- shell/utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shell/utils.js') diff --git a/shell/utils.js b/shell/utils.js index 70f1be0deeb..d3957a06779 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -1194,7 +1194,11 @@ shellHelper.set = function (str) { param = tokens[0]; value = tokens[1]; - if( value == undefined ) value = true; + if ( value == undefined ) value = true; + // value comes in as a string.. + if ( value == "true" ) value = true; + if ( value == "false" ) value = false; + if (param == "verbose") { _verboseShell = value; } -- cgit v1.2.1