mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
Support "--version" in the CLI to print the version.
This commit is contained in:
@ -14,6 +14,12 @@ int main(int argc, const char* argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (argc == 2 && strcmp(argv[1], "--version") == 0)
|
||||
{
|
||||
printf("wren %s\n", WREN_VERSION_STRING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
osSetArguments(argc, argv);
|
||||
|
||||
if (argc == 1)
|
||||
|
||||
Reference in New Issue
Block a user