# HG changeset patch # User Chris Cannam # Date 1541067487 0 # Node ID 9ae7725215e3218abbdbad1b6e7a2822ccb680bb # Parent 1e43d01f41727e44c8070edb3e5ad52891595ee7 Add --version option diff -r 1e43d01f4172 -r 9ae7725215e3 main/main.cpp --- a/main/main.cpp Wed Oct 31 15:09:11 2018 +0000 +++ b/main/main.cpp Thu Nov 01 10:18:07 2018 +0000 @@ -46,6 +46,8 @@ #include #include +#include "../version.h" + #ifdef HAVE_FFTW3F #include #endif @@ -264,6 +266,11 @@ exit(2); } + if (args.contains("--version")) { + cerr << SV_VERSION << endl; + exit(0); + } + if (args.contains("--no-audio")) audioOutput = false; if (args.contains("--no-osc")) oscSupport = false;