diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2013-09-18 14:02:36 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2013-10-04 16:58:54 -0400 |
commit | 6fc951d492881a32754bc3e38e8b5eca78929197 (patch) | |
tree | 73c2afe3120a8a87cf3bc8379e53461b2cf05b1e /src/mongo/db/mongod_options.h | |
parent | 99372153dfe9dd9251e49371d872b5f27dfd6f2c (diff) | |
download | mongo-6fc951d492881a32754bc3e38e8b5eca78929197.tar.gz |
SERVER-8510 Get rid of CmdLine struct and use new option handling style
Diffstat (limited to 'src/mongo/db/mongod_options.h')
-rw-r--r-- | src/mongo/db/mongod_options.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_options.h b/src/mongo/db/mongod_options.h index e507802684d..b5bab35e441 100644 --- a/src/mongo/db/mongod_options.h +++ b/src/mongo/db/mongod_options.h @@ -29,6 +29,8 @@ #pragma once #include "mongo/base/status.h" +#include "mongo/db/server_options.h" +#include "mongo/db/storage_options.h" namespace mongo { @@ -38,7 +40,28 @@ namespace mongo { namespace moe = mongo::optionenvironment; + struct MongodGlobalParams { + bool upgrade; + bool repair; + bool scriptingEnabled; // --noscripting + + MongodGlobalParams() : + upgrade(0), + repair(0), + scriptingEnabled(true) + { } + }; + + extern MongodGlobalParams mongodGlobalParams; + Status addMongodOptions(moe::OptionSection* options); + void printMongodHelp(const moe::OptionSection& options); + + Status handlePreValidationMongodOptions(const moe::Environment& params, + const std::vector<std::string>& args); + + Status storeMongodOptions(const moe::Environment& params, const std::vector<std::string>& args); + Status addModuleOptions(moe::OptionSection* options); } |