Support "--version" in the CLI to print the version.

This commit is contained in:
Bob Nystrom
2016-08-27 17:38:14 -07:00
parent 09ef904d32
commit b59eeaf2d1

View File

@ -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)