diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /AppVersion/AppVersion.cpp | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'AppVersion/AppVersion.cpp')
| -rwxr-xr-x | AppVersion/AppVersion.cpp | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/AppVersion/AppVersion.cpp b/AppVersion/AppVersion.cpp index 26cac2c1..004fbea7 100755 --- a/AppVersion/AppVersion.cpp +++ b/AppVersion/AppVersion.cpp @@ -1,43 +1,43 @@ -// -// wsjtx_app_version - a console application that outputs WSJT-X -// application version -// -// This application is only provided as a simple console application -// -// - -#include <cstdlib> -#include <iostream> -#include <exception> - -#include <QCoreApplication> -#include <QCommandLineParser> -#include <QCommandLineOption> - -#include "revision_utils.hpp" - -int main (int argc, char * argv[]) -{ - QCoreApplication app {argc, argv}; - try - { - app.setApplicationName ("WSJT-X"); - app.setApplicationVersion (version()); - - QCommandLineParser parser; -// parser.setApplicationDescription ("\n" PROJECT_DESCRIPTION); - parser.addHelpOption (); - parser.addVersionOption (); - parser.process (app); - return EXIT_SUCCESS; - } - catch (std::exception const& e) - { - std::cerr << "Error: " << e.what () << '\n'; - } - catch (...) - { - std::cerr << "Unexpected error\n"; - } - return -1; -} +//
+// wsjtx_app_version - a console application that outputs WSJT-X
+// application version
+//
+// This application is only provided as a simple console application
+//
+//
+
+#include <cstdlib>
+#include <iostream>
+#include <exception>
+
+#include <QCoreApplication>
+#include <QCommandLineParser>
+#include <QCommandLineOption>
+
+#include "revision_utils.hpp"
+
+int main (int argc, char * argv[])
+{
+ QCoreApplication app {argc, argv};
+ try
+ {
+ app.setApplicationName ("WSJT-X");
+ app.setApplicationVersion (version());
+
+ QCommandLineParser parser;
+// parser.setApplicationDescription ("\n" PROJECT_DESCRIPTION);
+ parser.addHelpOption ();
+ parser.addVersionOption ();
+ parser.process (app);
+ return EXIT_SUCCESS;
+ }
+ catch (std::exception const& e)
+ {
+ std::cerr << "Error: " << e.what () << '\n';
+ }
+ catch (...)
+ {
+ std::cerr << "Unexpected error\n";
+ }
+ return -1;
+}
|
