summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r--src/mongo/db/mongod_options.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp
index d98ca671a44..90dfc698b99 100644
--- a/src/mongo/db/mongod_options.cpp
+++ b/src/mongo/db/mongod_options.cpp
@@ -46,9 +46,6 @@
namespace mongo {
- typedef moe::OptionDescription OD;
- typedef moe::PositionalOptionDescription POD;
-
MongodGlobalParams mongodGlobalParams;
extern DiagLog _diaglog;
@@ -246,8 +243,13 @@ namespace mongo {
"n pretouch threads for applying master/slave operations")
.hidden();
+ // This is a deprecated option that we are supporting for backwards compatibility
+ // The first value for this option can be either 'dbpath' or 'run'.
+ // If it is 'dbpath', mongod prints the dbpath and exits. Any extra values are ignored.
+ // If it is 'run', mongod runs normally. Providing extra values is an error.
options->addOptionChaining("command", "command", moe::StringVector, "command")
- .hidden();
+ .hidden()
+ .positional(1, 3);
options->addOptionChaining("cacheSize", "cacheSize", moe::Long,
"cache size (in MB) for rec store")
@@ -281,12 +283,6 @@ namespace mongo {
options->addOptionChaining("opIdMem", "opIdMem", moe::Switch, "DEPRECATED")
.hidden();
-
- ret = options->addPositionalOption(POD("command", moe::String, 3));
- if (!ret.isOK()) {
- return ret;
- }
-
return Status::OK();
}