1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add command line option to load password from file (#7832)

This commit is contained in:
Kevin Abrams 2018-12-18 13:15:14 -06:00 committed by SmallJoker
parent 80eb762af1
commit b7eb81fed9
3 changed files with 19 additions and 0 deletions

View file

@ -308,6 +308,8 @@ static void set_allowed_options(OptionList *allowed_options)
_("Set player name"))));
allowed_options->insert(std::make_pair("password", ValueSpec(VALUETYPE_STRING,
_("Set password"))));
allowed_options->insert(std::make_pair("password-file", ValueSpec(VALUETYPE_STRING,
_("Set password from contents of file"))));
allowed_options->insert(std::make_pair("go", ValueSpec(VALUETYPE_FLAG,
_("Disable main menu"))));
allowed_options->insert(std::make_pair("console", ValueSpec(VALUETYPE_FLAG,