diff options
author | agirbal <antoine@10gen.com> | 2011-10-04 23:41:04 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-10-04 23:41:04 -0700 |
commit | 1a93a3e7da6055bedb5d9d9b78492e86dbbc3e8f (patch) | |
tree | 6e6c871802b5ae3565d7ea02cd5c98696db61e9c /shell/utils.js | |
parent | f895b46f9e858dd0ae3a268da66cd6f9c526e9dc (diff) | |
download | mongo-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.js | 6 |
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; } |