print the version by accessing it directly

This commit is contained in:
Chris Cromer 2023-02-16 02:27:24 -03:00
parent 48955026c4
commit 841914bae8
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -124,7 +124,7 @@ int main(int argc, char** argv)
return EXIT_SUCCESS;
break;
case 'v' :
std::cout << "obelisk " << (new obelisk::Obelisk())->getVersion() << std::endl;
std::cout << "obelisk " << obelisk::version << std::endl;
return EXIT_SUCCESS;
break;
default :