#pragma once #include #include #include namespace Bilicraft { inline constexpr std::string_view kGameVersion = BILICRAFT_BOT_GAME_VERSION; inline constexpr std::string_view kDefaultServer = "mc.bilicraft.com:25577"; struct AppConfig { std::string server{kDefaultServer}; // Microsoft credential-cache key, NOT an offline player name or password. std::string account; std::string actionFile; bool checkAction = false; bool help = false; }; // Arguments exclude argv[0]. Invalid or incomplete options throw invalid_argument. AppConfig ParseArguments(std::span arguments); std::string Usage(); } // namespace Bilicraft