0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

minor: check if there were any files given

This commit is contained in:
Mike Dirolf 2009-08-07 13:14:50 -04:00
parent ae3312f1cc
commit ee964dcbc9

View File

@ -201,7 +201,9 @@ int main(int argc, char* argv[]) {
return 0;
}
files = params["files"].as< vector<string> >();
if (params.count("files")) {
files = params["files"].as< vector<string> >();
}
/* This is a bit confusing, here are the rules:
*