[VER] v0.3.6-alpha 发布, 完整的Installer已准备!

[w] Change log 在之前的提交
This commit is contained in:
2026-01-04 14:51:32 +08:00
parent 3b5e99242f
commit 1ccc63419d
2 changed files with 37 additions and 24 deletions

View File

@@ -49,10 +49,10 @@ int main(int argc, char **argv)
program.add_argument("source")
.help("source file to be interpreted")
.default_value(std::string(""));
program.add_argument("-v", "--version")
.help("get the version of Fig Interpreter")
.default_value(false)
.implicit_value(true);
// program.add_argument("-v", "--version")
// .help("get the version of Fig Interpreter")
// .default_value(false)
// .implicit_value(true);
// interpreter
try
@@ -64,11 +64,11 @@ int main(int argc, char **argv)
std::cerr << e.what() << '\n';
return 1;
}
if (program.get<bool>("--version"))
{
std::print("Fig Interpreter version {}\n", Fig::Core::VERSION);
return 0;
}
// if (program.get<bool>("--version"))
// {
// std::print("Fig Interpreter version {}\n", Fig::Core::VERSION);
// return 0;
// }
Fig::FString sourcePath(program.get<std::string>("source"));
if (sourcePath.empty())
{