ver: version print.

This commit is contained in:
2025-10-20 15:22:38 +08:00
parent aead962ab3
commit e2f04dde62
4 changed files with 12 additions and 1 deletions

View File

@@ -1,11 +1,16 @@
#include <QCoreApplication>
#include <QDir>
#include <Util.h>
#include <fversion.h>
#include <iostream>
#include "Server.h"
int main(int argc, char* argv[])
{
auto ver = QString("%1 %2 on %3").arg(VERSION_NUM, VERSION_GIT_COMMIT, VERSION_GIT_BRANCH);
std::cout << ver.toStdString() << std::endl;
int port = 9009;
if (argc < 2) {
qDebug() << "Usage: frelayServer port.";