diff options
Diffstat (limited to 'src/mongo/tools/mongoimport_options.cpp')
-rw-r--r-- | src/mongo/tools/mongoimport_options.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mongo/tools/mongoimport_options.cpp b/src/mongo/tools/mongoimport_options.cpp index 534f69e66e4..de400bf139a 100644 --- a/src/mongo/tools/mongoimport_options.cpp +++ b/src/mongo/tools/mongoimport_options.cpp @@ -17,7 +17,6 @@ #include "mongo/tools/mongoimport_options.h" #include "mongo/base/status.h" -#include "mongo/util/options_parser/startup_option_init.h" #include "mongo/util/options_parser/startup_options.h" #include "mongo/util/text.h" @@ -172,29 +171,4 @@ namespace mongo { return Status::OK(); } - MONGO_GENERAL_STARTUP_OPTIONS_REGISTER(MongoImportOptions)(InitializerContext* context) { - return addMongoImportOptions(&moe::startupOptions); - } - - MONGO_STARTUP_OPTIONS_VALIDATE(MongoImportOptions)(InitializerContext* context) { - if (handlePreValidationMongoImportOptions(moe::startupOptionsParsed)) { - ::_exit(EXIT_SUCCESS); - } - Status ret = moe::startupOptionsParsed.validate(); - if (!ret.isOK()) { - return ret; - } - return Status::OK(); - } - - MONGO_STARTUP_OPTIONS_STORE(MongoImportOptions)(InitializerContext* context) { - Status ret = storeMongoImportOptions(moe::startupOptionsParsed, context->args()); - if (!ret.isOK()) { - std::cerr << ret.toString() << std::endl; - std::cerr << "try '" << context->args()[0] << " --help' for more information" - << std::endl; - ::_exit(EXIT_BADOPTIONS); - } - return Status::OK(); - } } |