summaryrefslogtreecommitdiffstats
path: root/src/zmq2farsync
diff options
context:
space:
mode:
Diffstat (limited to 'src/zmq2farsync')
-rw-r--r--src/zmq2farsync/zmq2farsync.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/zmq2farsync/zmq2farsync.cpp b/src/zmq2farsync/zmq2farsync.cpp
index 95dc074..2c29087 100644
--- a/src/zmq2farsync/zmq2farsync.cpp
+++ b/src/zmq2farsync/zmq2farsync.cpp
@@ -57,6 +57,18 @@ static void usage()
int main(int argc, char **argv)
{
+ // Version handling is done very early to ensure nothing else but the version gets printed out
+ if (argc == 2 and strcmp(argv[1], "--version") == 0) {
+ fprintf(stdout, "%s\n",
+#if defined(GITVERSION)
+ GITVERSION
+#else
+ PACKAGE_VERSION
+#endif
+ );
+ return 0;
+ }
+
etiLog.level(info) << "ZMQ2FarSync ETI converter from " <<
PACKAGE_NAME << " " <<
#if defined(GITVERSION)