Skip to content
Browse files

Allow options to usersInfo to be passed to the db.getUsers shell helper

  • Loading branch information...
1 parent e6257f5 commit 740526fa345d5eed2070602c0ad986591003c9e5 @stbrody stbrody committed Jan 14, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/mongo/shell/db.js
View
6 src/mongo/shell/db.js
@@ -1259,8 +1259,10 @@ DB.prototype.getUser = function(username) {
return res.users[0];
}
-DB.prototype.getUsers = function() {
- var res = this.runCommand({usersInfo: 1});
+DB.prototype.getUsers = function(args) {
+ var cmdObj = {usersInfo: 1};
+ Object.extend(cmdObj, args);
+ var res = this.runCommand(cmdObj);
if (!res.ok) {
throw Error(res.errmsg);
}

0 comments on commit 740526f

Please sign in to comment.
Something went wrong with that request. Please try again.