// 简易命令行解析:支持帮助、输入文件与输出阶段选择。 #pragma once #include struct CLIOptions { std::string input; bool emit_parse_tree = false; bool emit_ir = true; bool emit_asm = false; bool show_help = false; }; CLIOptions ParseCLI(int argc, char** argv);