core: add version

This commit is contained in:
Vaxry 2024-04-20 01:49:45 +01:00
parent f2e8642342
commit e50948947a

View file

@ -535,6 +535,12 @@ int main(int argc, char** argv, char** envp) {
for (int i = 1; i < argc; ++i) {
std::string curarg = argv[i];
if (curarg == "-v" || curarg == "--version") {
std::cout << SCANNER_VERSION << "\n";
return 0;
}
if (i == 1)
protopath = curarg;
else if (i == 2)