summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-01-24 01:03:02 -0500
committerdwight <dwight@10gen.com>2011-01-24 01:03:02 -0500
commita8bf207d8493f752f7afb64d6d37df29c13b6ae0 (patch)
treeee36146e613276a2ec665b825b1713b9d80d471a
parent2951ea2d16ad6ba24121a401aca6634846694662 (diff)
downloadmongo-a8bf207d8493f752f7afb64d6d37df29c13b6ae0.tar.gz
show --dur in cmdline help and partially alphabetize those options
-rw-r--r--db/db.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/db/db.cpp b/db/db.cpp
index e29fff191f0..7d2d7045a91 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -630,38 +630,39 @@ int main(int argc, char* argv[]) {
CmdLine::addGlobalOptions( general_options , hidden_options );
general_options.add_options()
+ ("auth", "run with security")
+ ("cpu", "periodically show cpu and iowait utilization")
("dbpath", po::value<string>() , "directory for datafiles")
+ ("diaglog", po::value<int>(), "0=off 1=W 2=R 3=both 7=W+some reads")
("directoryperdb", "each database will be stored in a separate directory")
- ("repairpath", po::value<string>() , "root directory for repair files - defaults to dbpath" )
- ("cpu", "periodically show cpu and iowait utilization")
+ ("dur", "enable journaling")
+ ("durOptions", po::value<int>(), "durability diagnostic options")
+ ("ipv6", "enable IPv6 support (disabled by default)")
+ ("jsonp","allow JSONP access via http (has security implications)")
+ ("maxConns",po::value<int>(), "max number of simultaneous connections")
("noauth", "run without security")
- ("auth", "run with security")
- ("objcheck", "inspect client data for validity on receipt")
- ("quota", "limits each database to a certain number of files (8 default)")
- ("quotaFiles", po::value<int>(), "number of files allower per db, requires --quota")
- ("appsrvpath", po::value<string>(), "root directory for the babble app server")
("nocursors", "diagnostic/debugging option")
("nohints", "ignore query hints")
("nohttpinterface", "disable http interface")
- ("rest","turn on simple rest api")
- ("jsonp","allow JSONP access via http (has security implications)")
- ("noscripting", "disable scripting engine")
("noprealloc", "disable data file preallocation - will often hurt performance")
- ("smallfiles", "use a smaller default file size")
- ("nssize", po::value<int>()->default_value(16), ".ns file size (in MB) for new databases")
- ("diaglog", po::value<int>(), "0=off 1=W 2=R 3=both 7=W+some reads")
- ("sysinfo", "print some diagnostic system information")
- ("upgrade", "upgrade db if needed")
- ("repair", "run repair on all dbs")
+ ("noscripting", "disable scripting engine")
("notablescan", "do not allow table scans")
- ("syncdelay",po::value<double>(&cmdLine.syncdelay)->default_value(60), "seconds between disk syncs (0=never, but not recommended)")
- ("profile",po::value<int>(), "0=off 1=slow, 2=all")
- ("slowms",po::value<int>(&cmdLine.slowMS)->default_value(100), "value of slow for profile and console log" )
- ("maxConns",po::value<int>(), "max number of simultaneous connections")
#if !defined(_WIN32)
("nounixsocket", "disable listening on unix sockets")
#endif
- ("ipv6", "enable IPv6 support (disabled by default)")
+ ("nssize", po::value<int>()->default_value(16), ".ns file size (in MB) for new databases")
+ ("objcheck", "inspect client data for validity on receipt")
+ ("profile",po::value<int>(), "0=off 1=slow, 2=all")
+ ("quota", "limits each database to a certain number of files (8 default)")
+ ("quotaFiles", po::value<int>(), "number of files allower per db, requires --quota")
+ ("rest","turn on simple rest api")
+ ("repair", "run repair on all dbs")
+ ("repairpath", po::value<string>() , "root directory for repair files - defaults to dbpath" )
+ ("slowms",po::value<int>(&cmdLine.slowMS)->default_value(100), "value of slow for profile and console log" )
+ ("smallfiles", "use a smaller default file size")
+ ("syncdelay",po::value<double>(&cmdLine.syncdelay)->default_value(60), "seconds between disk syncs (0=never, but not recommended)")
+ ("sysinfo", "print some diagnostic system information")
+ ("upgrade", "upgrade db if needed")
;
#if defined(_WIN32)
@@ -697,12 +698,11 @@ int main(int argc, char* argv[]) {
("command", po::value< vector<string> >(), "command")
("cacheSize", po::value<long>(), "cache size (in MB) for rec store")
// these move to unhidden later:
- ("dur", "enable journaling")
- ("durOptions", po::value<int>(), "durability diagnostic options")
("opIdMem", po::value<long>(), "size limit (in bytes) for in memory storage of op ids for replica pairs DEPRECATED")
("pairwith", po::value<string>(), "address of server to pair with DEPRECATED")
("arbiter", po::value<string>(), "address of replica pair arbiter server DEPRECATED")
("nodur", "disable journaling (currently the default)")
+ ("appsrvpath", po::value<string>(), "root directory for the babble app server")
;