summaryrefslogtreecommitdiff
path: root/src/mongo/tools
diff options
context:
space:
mode:
authorMatt Kangas <matt.kangas@mongodb.com>2014-01-24 13:23:36 -0500
committerMatt Kangas <matt.kangas@mongodb.com>2014-01-24 13:23:36 -0500
commited58b0dfe564253067b4cab11ab75477b7e48388 (patch)
treead0e316cfd7795f87e70711041998feab4edd9fd /src/mongo/tools
parenta23a3f35d5fa97bdeca2e71211924e01fe87d07d (diff)
downloadmongo-ed58b0dfe564253067b4cab11ab75477b7e48388.tar.gz
Revert "SERVER-11661 Validation for port command line option in tools"
This reverts commit 4989b84929bcb9112c5a0257c5ae32db2067b80f.
Diffstat (limited to 'src/mongo/tools')
-rw-r--r--src/mongo/tools/tool_options.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/tools/tool_options.cpp b/src/mongo/tools/tool_options.cpp
index 503900b824e..03801a75d98 100644
--- a/src/mongo/tools/tool_options.cpp
+++ b/src/mongo/tools/tool_options.cpp
@@ -75,9 +75,8 @@ namespace mongo {
options->addOptionChaining("host", "host,h", moe::String,
"mongo host to connect to ( <set name>/s1,s2 for sets)");
- options->addOptionChaining("port", "port", moe::Int,
- "server port. Can also use --host hostname:port")
- .validRange(0, 65535);
+ options->addOptionChaining("port", "port", moe::String,
+ "server port. Can also use --host hostname:port");
options->addOptionChaining("ipv6", "ipv6", moe::Switch,
"enable IPv6 support (disabled by default)");