diff options
author | Kevin Abrams <21090310+kkabrams@users.noreply.github.com> | 2018-12-18 13:15:14 -0600 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-12-18 20:15:14 +0100 |
commit | b7eb81fed922f7215cfff1068389fa85b2ee4ab2 (patch) | |
tree | 08deceaecf06b9c53a6baec3421ceb3946d86ca9 /src/main.cpp | |
parent | 80eb762af13f11ca48b69c818b737c68f8b31822 (diff) | |
download | minetest-b7eb81fed922f7215cfff1068389fa85b2ee4ab2.tar.gz minetest-b7eb81fed922f7215cfff1068389fa85b2ee4ab2.tar.bz2 minetest-b7eb81fed922f7215cfff1068389fa85b2ee4ab2.zip |
Add command line option to load password from file (#7832)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 546eb2a00..26ad978c6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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, |