diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2013-08-14 11:54:01 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2013-09-05 13:49:35 -0400 |
commit | 03ca1e173f4ad480a817d542780035532a4efb0f (patch) | |
tree | c247110abd231bee71e20abc8f3cd4129fa6550c /src/mongo/util/ntservice.h | |
parent | ea40937c304ad77884cc3087b491de502dca66b6 (diff) | |
download | mongo-03ca1e173f4ad480a817d542780035532a4efb0f.tar.gz |
SERVER-8510 Use new option parser in mongod and mongos and move parsing into MONGO_INITIALIZERS
Diffstat (limited to 'src/mongo/util/ntservice.h')
-rw-r--r-- | src/mongo/util/ntservice.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/util/ntservice.h b/src/mongo/util/ntservice.h index 68d32037144..405515d0ac5 100644 --- a/src/mongo/util/ntservice.h +++ b/src/mongo/util/ntservice.h @@ -24,7 +24,6 @@ #ifdef _WIN32 -#include <boost/program_options.hpp> #include <string> #include <vector> @@ -32,6 +31,13 @@ namespace mongo { + namespace optionenvironment { + class OptionSection; + class Environment; + } // namespace optionenvironment + + namespace moe = mongo::optionenvironment; + namespace ntservice { struct NtServiceDefaultStrings { const wchar_t* serviceName; @@ -55,7 +61,7 @@ namespace ntservice { */ void configureService( ServiceCallback serviceCallback, - const boost::program_options::variables_map& params, + const moe::Environment& params, const NtServiceDefaultStrings& defaultStrings, const std::vector<std::string>& disallowedOptions, const std::vector<std::string>& argv); |