/********************************************************************* * \file main.cpp * * \author Romain BOULLARD * \date August 2026 *********************************************************************/ #include #include #include #include #include #include #include #include int main(int argc, char** argv) { BIGFOOT_NOT_OPTIMIZED_ONLY(::Bigfoot::Singleton<::Bigfoot::Log>::Lifetime logLifetime); bool showHelp = false; std::string bigFilePath; std::string outputPath; const auto& cli = lyra::help(showHelp) | lyra::opt(bigFilePath, "bigfile")["-b"]["--bigfile"]("The BigFile to bake (must exist)") .required() | lyra::opt(outputPath, "output")["-o"]["--output"]("The Sasquatch file to write").required(); const lyra::parse_result result = cli.parse({argc, argv}); if (!result) { std::cerr << result.message() << "\n\n" << cli << '\n'; return 1; } if (showHelp) { std::cout << cli << '\n'; return 0; } const Bigfoot::BigFile bigFile {Bigfoot::File {eastl::string_view {bigFilePath.c_str()}}}; Bigfoot::Bake(bigFile, Bigfoot::File {eastl::string_view {outputPath.c_str()}}); return 0; }