#include "options.hpp" #include #include #include namespace { namespace bpo = boost::program_options; typedef std::vector StringsVector; } namespace OpenMW { bpo::options_description makeOptionsDescription() { bpo::options_description desc("Syntax: openmw \nAllowed options"); Files::ConfigurationManager::addCommonOptions(desc); auto addOption = desc.add_options(); addOption("help", "print help message"); addOption("version", "print version information and quit"); addOption("data", bpo::value() ->default_value(Files::MaybeQuotedPathContainer(), "data") ->multitoken() ->composing(), "set data directories (later directories have higher priority)"); addOption("data-local", bpo::value()->default_value(Files::MaybeQuotedPath(), ""), "set local data directory (highest priority)"); addOption("fallback-archive", bpo::value()->default_value(StringsVector(), "fallback-archive")->multitoken()->composing(), "set fallback BSA archives (later archives have higher priority)"); addOption("resources", bpo::value()->default_value(Files::MaybeQuotedPath(), "resources"), "set resources directory"); addOption("start", bpo::value()->default_value(""), "set initial cell"); addOption("content", bpo::value()->default_value(StringsVector(), "")->multitoken()->composing(), "content file(s): esm/esp, or omwgame/omwaddon/omwscripts"); addOption("groundcover", bpo::value()->default_value(StringsVector(), "")->multitoken()->composing(), "groundcover content file(s): esm/esp, or omwgame/omwaddon"); addOption("no-sound", bpo::value()->implicit_value(true)->default_value(false), "disable all sounds"); addOption("script-all", bpo::value()->implicit_value(true)->default_value(false), "compile all scripts (excluding dialogue scripts) at startup"); addOption("script-all-dialogue", bpo::value()->implicit_value(true)->default_value(false), "compile all dialogue scripts at startup"); addOption("script-console", bpo::value()->implicit_value(true)->default_value(false), "enable console-only script functionality"); addOption("script-run", bpo::value()->default_value(""), "select a file containing a list of console commands that is executed on startup"); addOption("script-warn", bpo::value()->implicit_value(1)->default_value(1), "handling of warnings when compiling scripts\n" "\t0 - ignore warning\n" "\t1 - show warning but consider script as correctly compiled anyway\n" "\t2 - treat warnings as errors"); addOption("script-blacklist", bpo::value()->default_value(StringsVector(), "")->multitoken()->composing(), "ignore the specified script (if the use of the blacklist is enabled)"); addOption("script-blacklist-use", bpo::value()->implicit_value(true)->default_value(true), "enable script blacklisting"); addOption("load-savegame", bpo::value()->default_value(Files::MaybeQuotedPath(), ""), "load a save game file on game startup (specify an absolute filename or a filename relative to the current " "working directory)"); addOption("skip-menu", bpo::value()->implicit_value(true)->default_value(false), "skip main menu on game startup"); addOption("new-game", bpo::value()->implicit_value(true)->default_value(false), "run new game sequence (ignored if skip-menu=0)"); addOption("fs-strict", bpo::value()->implicit_value(true)->default_value(false), "strict file system handling (no case folding)"); addOption("encoding", bpo::value()->default_value("win1252"), "Character encoding used in OpenMW game messages:\n" "\n\twin1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, " "Croatian, Serbian (Latin script), Romanian and Albanian languages\n" "\n\twin1251 - Cyrillic alphabet such as Russian, Bulgarian, Serbian Cyrillic and other languages\n" "\n\twin1252 - Western European (Latin) alphabet, used by default"); addOption("fallback", bpo::value()->default_value(Fallback::FallbackMap(), "")->multitoken()->composing(), "fallback values"); addOption("no-grab", bpo::value()->implicit_value(true)->default_value(false), "Don't grab mouse cursor"); addOption("export-fonts", bpo::value()->implicit_value(true)->default_value(false), "Export Morrowind .fnt fonts to PNG image and XML file in current directory"); addOption("activate-dist", bpo::value()->default_value(-1), "activation distance override"); addOption("random-seed", bpo::value()->default_value(Misc::Rng::generateDefaultSeed()), "seed value for random number generator"); return desc; } }