Skip to content

Commit

Permalink
Merge pull request #316 from derickr/shell-show-databases
Browse files Browse the repository at this point in the history
SERVER-7486 Allow "show databases" as alias for "show dbs".
  • Loading branch information
IanWhalen committed Oct 26, 2012
2 parents b56566b + db74348 commit 0eb6ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/shell/utils.js
Expand Up @@ -1471,7 +1471,7 @@ shellHelper.show = function (what) {
return "";
}

if (what == "dbs") {
if (what == "dbs" || what == "databases") {
var dbs = db.getMongo().getDBs();
var size = {};
dbs.databases.forEach(function (x) { size[x.name] = x.sizeOnDisk; });
Expand Down

0 comments on commit 0eb6ecc

Please sign in to comment.