Skip to content

Commit

Permalink
print shell version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Jun 24, 2009
1 parent 3fc2ac7 commit f9e806b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/dbshell.cpp
Expand Up @@ -240,6 +240,8 @@ int main(int argc, char* argv[]) {
scope->externalSetup();
mongo::shellUtils::installShellUtils( *scope );

cout << "MongoDB shell version: " << mongo::versionString << endl;

if ( !nodb ) { // connect to db
cout << "url: " << url << endl;
string setup = (string)"db = connect( \"" + fixHost( url , dbhost , port ) + "\")";
Expand Down

0 comments on commit f9e806b

Please sign in to comment.