diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-08-14 17:55:17 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-08-14 17:55:17 -0400 |
commit | e11d9c7efb131373c50ebd9c036ac492c0b55bea (patch) | |
tree | df15ac6d28096026656d4629891383a77da94b9c /shell/utils.js | |
parent | 752a747df8243fd9a426694a5f0ab021c79e93ef (diff) | |
download | mongo-e11d9c7efb131373c50ebd9c036ac492c0b55bea.tar.gz |
db.version() for server version and in help SERVER-200
Diffstat (limited to 'shell/utils.js')
-rw-r--r-- | shell/utils.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/utils.js b/shell/utils.js index c64b2a8b6d1..63534140720 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -344,6 +344,8 @@ shellHelper = function( command , rest , shouldPrint ){ } help = shellHelper.help = function(){ + if ( typeof( db ) != "undefined" ) + print( "server version: " + db.version() ); print( "HELP" ); print( "\t" + "show dbs show database names"); print( "\t" + "show collections show collections in current database"); |