->default_value(false),"strict file system handling (no case folding)")
("encoding",bpo::value<std::string>()->
addOption("encoding",bpo::value<std::string>()->
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")
"\n\twin1252 - Western European (Latin) alphabet, used by default");
bpo::options_descriptiondesc("Inspect and extract from Morrowind ES files (ESM, ESP, ESS)\nSyntax: esmtool [options] mode infile [outfile]\nAllowed modes:\n dump\t Dumps all readable data from the input file.\n clone\t Clones the input file to the output file.\n comp\t Compares the given files.\n\nAllowed options");
desc.add_options()
("help,h","print help message.")
("version,v","print version information and quit.")
("raw,r",bpo::value<std::string>(),
bpo::options_descriptiondesc(R"(Inspect and extract from Morrowind ES files (ESM, ESP, ESS)
Syntax:esmtool[options]modeinfile[outfile]
Allowedmodes:
dumpDumpsallreadabledatafromtheinputfile.
cloneClonestheinputfiletotheoutputfile.
compComparesthegivenfiles.
Allowedoptions)");
autoaddOption=desc.add_options();
addOption("help,h","print help message.");
addOption("version,v","print version information and quit.");
addOption("raw,r",bpo::value<std::string>(),
"Show an unformatted list of all records and subrecords of given format:\n"
"\n\tTES3"
"\n\tTES4")
"\n\tTES4");
// The intention is that this option would interact better
// with other modes including clone, dump, and raw.
"\n\twin1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, Croatian, Serbian (Latin script), Romanian and Albanian languages\n"
"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")
"\n\twin1252 - Western European (Latin) alphabet, used by default");
;
p_desc.add("ini",1).add("cfg",1);
@ -84,7 +84,6 @@ int wmain(int argc, wchar_t *wargv[]) {
->default_value(false),"strict file system handling (no case folding)")
("encoding",bpo::value<std::string>()->
addOption("encoding",bpo::value<std::string>()->
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")
"\n\twin1252 - Western European (Latin) alphabet, used by default");
->default_value(false),"strict file system handling (no case folding)");
("encoding",bpo::value<std::string>()->
addOption("encoding",bpo::value<std::string>()->
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")
"\n\twin1252 - Western European (Latin) alphabet, used by default");