Mercurial > hg > sonic-visualiser
diff main/main.cpp @ 2053:9ae7725215e3
Add --version option
author | Chris Cannam |
---|---|
date | Thu, 01 Nov 2018 10:18:07 +0000 |
parents | 55d9bbf1fe45 |
children | 943e52e03cde |
line wrap: on
line diff
--- 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 <iostream> #include <signal.h> +#include "../version.h" + #ifdef HAVE_FFTW3F #include <fftw3.h> #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;