Mercurial > hg > sonic-visualiser
changeset 2053:9ae7725215e3
Add --version option
author | Chris Cannam |
---|---|
date | Thu, 01 Nov 2018 10:18:07 +0000 |
parents | 1e43d01f4172 |
children | fc17db201a86 |
files | main/main.cpp |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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;