summaryrefslogtreecommitdiff
path: root/shell/utils.js
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2011-10-04 23:41:04 -0700
committeragirbal <antoine@10gen.com>2011-10-04 23:41:04 -0700
commit1a93a3e7da6055bedb5d9d9b78492e86dbbc3e8f (patch)
tree6e6c871802b5ae3565d7ea02cd5c98696db61e9c /shell/utils.js
parentf895b46f9e858dd0ae3a268da66cd6f9c526e9dc (diff)
downloadmongo-1a93a3e7da6055bedb5d9d9b78492e86dbbc3e8f.tar.gz
- SERVER-1507: option as string must be converted to boolean
- SERVER-3629: implementation finished
Diffstat (limited to 'shell/utils.js')
-rw-r--r--shell/utils.js6
1 files changed, 5 insertions, 1 deletions
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;
}