diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:31 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:31 +0200 |
| commit | 0e579a45e2e5823f90e2632073749583cd15fa0d (patch) | |
| tree | 5e709e13d41c8ea0da0968fb6c4566057b4b7909 /AppVersion/AppVersion.cpp | |
| parent | 28d1767618141cd6481de2e93e36e3dfa555d4b4 (diff) | |
| parent | 2d1068e60bce7ae1fff11623454900e8cee956b1 (diff) | |
Update upstream source from tag 'upstream/2.6.0_rc3+repack'
Update to upstream version '2.6.0~rc3+repack'
with Debian dir 9ee8bc3a4b60bb88f4d57c7d1f2d37dbc1632144
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;
+}
|
