From 321a2cb3a86923a622117db2d81fda23d3826447 Mon Sep 17 00:00:00 2001 From: QJKX Date: Tue, 28 Dec 2021 00:33:39 +0000 Subject: [PATCH] give --version the success exit code Change exit code of `jamulus --version` from 1 to 0. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d0f23d166d..7cced743f9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -129,7 +129,7 @@ int main ( int argc, char** argv ) if ( ( !strcmp ( argv[i], "--version" ) ) || ( !strcmp ( argv[i], "-v" ) ) ) { qCritical() << qUtf8Printable ( GetVersionAndNameStr ( false ) ); - exit ( 1 ); + exit ( 0 ); } // Common options: