mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-08 06:35:58 +01:00
core: add version
This commit is contained in:
parent
f2e8642342
commit
e50948947a
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue