summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2011-10-28 12:06:34 -0400
committerDwight <dwight@10gen.com>2011-10-28 12:06:34 -0400
commitc65c75bb10689f419b863c824387444a01582aa4 (patch)
treedcc49a29ce5f88ef4a11aa24eaae60a23fc7e428
parentcd057a21ea42fcf5df04ee905d9866a254d1c0e9 (diff)
parentf9a94a82e8a6145711d5f924070401c502629ec0 (diff)
downloadmongo-c65c75bb10689f419b863c824387444a01582aa4.tar.gz
Merge branch 'master' of github.com:mongodb/mongo
-rw-r--r--shell/dbshell.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp
index a1768e433fa..4006f48e2ed 100644
--- a/shell/dbshell.cpp
+++ b/shell/dbshell.cpp
@@ -724,6 +724,12 @@ int _main(int argc, char* argv[]) {
logLevel = 1;
}
+ if ( url == "*" ) {
+ cout << "ERROR: " << "\"*\" is an invalid db address" << endl << endl;
+ show_help_text(argv[0], shell_options);
+ return mongo::EXIT_BADOPTIONS;
+ }
+
if ( ! mongo::cmdLine.quiet )
cout << "MongoDB shell version: " << mongo::versionString << endl;