verbose option for shell

This commit is contained in:
Eliot Horowitz
2011-02-01 11:38:33 -05:00
parent 4e678efc48
commit d85cdcf1b5

View File

@@ -487,7 +487,9 @@ string sayReplSetMemberState() {
}
}
}
catch(...) { }
catch( std::exception& e ) {
log(1) << "error in sayReplSetMemberState:" << e.what() << endl;
}
return "";
}
@@ -527,6 +529,7 @@ int _main(int argc, char* argv[]) {
"password for authentication")
("help,h", "show this usage information")
("version", "show version information")
("verbose", "increase verbosity")
("ipv6", "enable IPv6 support (disabled by default)")
;
@@ -626,6 +629,9 @@ int _main(int argc, char* argv[]) {
if (params.count("ipv6")) {
mongo::enableIPv6();
}
if (params.count("verbose")) {
logLevel = 1;
}
if ( ! mongo::cmdLine.quiet )
cout << "MongoDB shell version: " << mongo::versionString << endl;