That is very odd. I assume that this is a downloaded version from
http://www.mongodb.org/downloads and not a version you built
yourself. Do you get the same error message if you type "mongos --
version"? I get this:
C:\Bin\MongoDB\202>mongos --version
Thu Feb 09 15:52:26 mongos db version v2.0.2, pdfile version 4.5
starting (--help for usage)
Thu Feb 09 15:52:26 git version:
514b122d308928517f5841888ceaa4246a7f18e3
Thu Feb 09 15:52:26 build info: windows (6, 1, 7601, 2, 'Service Pack
1') BOOST_LIB_VERSION=1_42
The text "too many positional options" matches error text that the
Boost program_options library includes ( C:\boost\boost\program_options
\errors.hpp ) so if something went wrong in the build I could see how
this error might be produced. In fact, mistyping the command in any
of several ways seems to produce this message:
C:\Bin\MongoDB\202>mongos help
error command line: too many positional options
use --help for help
C:\Bin\MongoDB\202>mongos -- help
error command line: too many positional options
use --help for help
C:\Bin\MongoDB\202>mongos --help
General options:
-h [ --help ] show this usage information
--version show version information
-f [ --config ] arg configuration file specifying additional
options
-v [ --verbose ] be more verbose (include multiple times for
more
verbosity e.g. -vvvvv)
--quiet quieter output
--port arg specify port number
--bind_ip arg comma separated list of ip addresses to listen
on - all
local ips by default
--maxConns arg max number of simultaneous connections
--objcheck inspect client data for validity on receipt
--logpath arg log file to send write to instead of stdout -
has to be
a file, not directory
--logappend append to logpath instead of over-writing
--pidfilepath arg full path to pidfile (if not set, no pidfile
is
created)
--keyFile arg private key for cluster authentication (only
for
replica sets)
Sharding options:
--configdb arg 1 or 3 comma separated config servers
--test just run unit tests
--upgrade upgrade meta data version
--chunkSize arg maximum amount of data per chunk
--ipv6 enable IPv6 support (disabled by default)
--jsonp allow JSONP access via http (has security
implications)
--noscripting disable scripting engine
C:\Bin\MongoDB\202>