diff options
Diffstat (limited to 'src/mongo/util/options_parser/startup_options.h')
-rw-r--r-- | src/mongo/util/options_parser/startup_options.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/mongo/util/options_parser/startup_options.h b/src/mongo/util/options_parser/startup_options.h index d6e7e9763a1..1ea7b7b8232 100644 --- a/src/mongo/util/options_parser/startup_options.h +++ b/src/mongo/util/options_parser/startup_options.h @@ -32,35 +32,35 @@ namespace mongo { namespace optionenvironment { - /* - * This structure stores information about all the command line options. The parser will use - * this description when it parses the command line, the INI config file, and the JSON config - * file. See the OptionSection and OptionDescription classes for more details. - * - * Example: - * MONGO_MODULE_STARTUP_OPTIONS_REGISTER(MongodOptions)(InitializerContext* context) { - * return addMongodOptions(&moe::startupOptions); - * startupOptions.addOptionChaining("option", "option", moe::String, "description"); - * return Status::OK(); - * } - */ - extern OptionSection startupOptions; +/* + * This structure stores information about all the command line options. The parser will use + * this description when it parses the command line, the INI config file, and the JSON config + * file. See the OptionSection and OptionDescription classes for more details. + * + * Example: + * MONGO_MODULE_STARTUP_OPTIONS_REGISTER(MongodOptions)(InitializerContext* context) { + * return addMongodOptions(&moe::startupOptions); + * startupOptions.addOptionChaining("option", "option", moe::String, "description"); + * return Status::OK(); + * } + */ +extern OptionSection startupOptions; - /* - * This structure stores the parsed command line options. After the "defult" group of the - * MONGO_INITIALIZERS, this structure should be fully validated from an option perspective. See - * the Environment, Constraint, and Value classes for more details. - * - * Example: - * if (startupOptionsParsed.count("option")) { - * std::string value; - * ret = startupOptionsParsed.get("option", &value); - * if (!ret.isOK()) { - * return ret; - * } - * } - */ - extern Environment startupOptionsParsed; +/* + * This structure stores the parsed command line options. After the "defult" group of the + * MONGO_INITIALIZERS, this structure should be fully validated from an option perspective. See + * the Environment, Constraint, and Value classes for more details. + * + * Example: + * if (startupOptionsParsed.count("option")) { + * std::string value; + * ret = startupOptionsParsed.get("option", &value); + * if (!ret.isOK()) { + * return ret; + * } + * } + */ +extern Environment startupOptionsParsed; -} // namespace optionenvironment -} // namespace mongo +} // namespace optionenvironment +} // namespace mongo |