This commit is contained in:
2026-02-14 14:32:03 +01:00
parent 444e11663d
commit 99d537ac29
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
#include "git_version.h"
#include "mainwindow.hpp" #include "mainwindow.hpp"
#include "spdlog/async.h" #include "spdlog/async.h"
#include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/stdout_color_sinks.h"
@@ -6,7 +7,6 @@
#include <QCommandLineOption> #include <QCommandLineOption>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QProcess> #include <QProcess>
#include "git_version.h"
#ifdef EMSCRIPTEN #ifdef EMSCRIPTEN
#include <emscripten.h> #include <emscripten.h>
@@ -32,7 +32,8 @@ int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
QCommandLineParser parser; QCommandLineParser parser;
parser.setApplicationDescription("unisim_cpp client - version: " + QString::fromStdString(Git_version::shortSha1) + QString::fromStdString(Git_version::dirty ? "-dirty" : "")); parser.setApplicationDescription("unisim_cpp client - version: " + QString::fromStdString(Git_version::shortSha1) +
QString::fromStdString(Git_version::dirty ? "-dirty" : ""));
parser.addHelpOption(); parser.addHelpOption();
QCommandLineOption host_option(QStringList() << "s" QCommandLineOption host_option(QStringList() << "s"
+3 -2
View File
@@ -6,8 +6,8 @@
#include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "simulators.hpp"
#include "git_version.h" #include "git_version.h"
#include "simulators.hpp"
void init_logger() void init_logger()
{ {
@@ -29,7 +29,8 @@ int main(int argc, char *argv[])
QCoreApplication a(argc, argv); QCoreApplication a(argc, argv);
QCommandLineParser parser; QCommandLineParser parser;
parser.setApplicationDescription("unisim_cpp server - version: " + QString::fromStdString(Git_version::shortSha1) + QString::fromStdString(Git_version::dirty ? "-dirty" : "")); parser.setApplicationDescription("unisim_cpp server - version: " + QString::fromStdString(Git_version::shortSha1) +
QString::fromStdString(Git_version::dirty ? "-dirty" : ""));
parser.addHelpOption(); parser.addHelpOption();
QCommandLineOption port_option(QStringList() << "p" QCommandLineOption port_option(QStringList() << "p"