mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requested
This commit is contained in:
parent
577701cabd
commit
b4acac706d
2 changed files with 4 additions and 4 deletions
|
@ -266,7 +266,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
#ifndef __ANDROID__
|
||||
// Run unit tests
|
||||
if (cmd_args.getFlag("do-unittests")) {
|
||||
if (cmd_args.getFlag("run-unittests")) {
|
||||
run_tests();
|
||||
return 0;
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ static void set_allowed_options(OptionList *allowed_options)
|
|||
_("Load configuration from specified file"))));
|
||||
allowed_options->insert(std::make_pair("port", ValueSpec(VALUETYPE_STRING,
|
||||
_("Set network port (UDP)"))));
|
||||
allowed_options->insert(std::make_pair("do-unittests", ValueSpec(VALUETYPE_FLAG,
|
||||
allowed_options->insert(std::make_pair("run-unittests", ValueSpec(VALUETYPE_FLAG,
|
||||
_("Run the unit tests and exit"))));
|
||||
allowed_options->insert(std::make_pair("map-dir", ValueSpec(VALUETYPE_STRING,
|
||||
_("Same as --world (deprecated)"))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue