diff options
Diffstat (limited to 'src/servermain.cpp')
-rw-r--r-- | src/servermain.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/servermain.cpp b/src/servermain.cpp index 3ef1d9479..7a05bb964 100644 --- a/src/servermain.cpp +++ b/src/servermain.cpp @@ -203,14 +203,20 @@ int main(int argc, char *argv[]) // List all allowed options core::map<std::string, ValueSpec> allowed_options; - allowed_options.insert("help", ValueSpec(VALUETYPE_FLAG)); + allowed_options.insert("help", ValueSpec(VALUETYPE_FLAG, + "Show allowed options")); allowed_options.insert("config", ValueSpec(VALUETYPE_STRING, "Load configuration from specified file")); - allowed_options.insert("port", ValueSpec(VALUETYPE_STRING)); - allowed_options.insert("disable-unittests", ValueSpec(VALUETYPE_FLAG)); - allowed_options.insert("enable-unittests", ValueSpec(VALUETYPE_FLAG)); - allowed_options.insert("map-dir", ValueSpec(VALUETYPE_STRING)); - allowed_options.insert("info-on-stderr", ValueSpec(VALUETYPE_FLAG)); + allowed_options.insert("port", ValueSpec(VALUETYPE_STRING, + "Set network port (UDP) to use")); + allowed_options.insert("disable-unittests", ValueSpec(VALUETYPE_FLAG, + "Disable unit tests")); + allowed_options.insert("enable-unittests", ValueSpec(VALUETYPE_FLAG, + "Enable unit tests")); + allowed_options.insert("map-dir", ValueSpec(VALUETYPE_STRING, + "Map directory (where everything in the world is stored)")); + allowed_options.insert("info-on-stderr", ValueSpec(VALUETYPE_FLAG, + "Print debug information to console")); Settings cmd_args; |