From df070ebb578db360f4b888a6d674d9e20b58a523 Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 16 Jun 2020 15:18:25 +0200 Subject: Show doxywizard version by means of --version Analogous to show help information (`--help`) also show the, full, version of the doxywizard (in the about box only the short version is shown). --- addon/doxywizard/doxywizard.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index 27c99da..ce22367 100755 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -698,6 +698,13 @@ int main(int argc,char **argv) msgBox.exec(); exit(0); } + else if (!qstrcmp(argv[1],"--version")) + { + QMessageBox msgBox; + msgBox.setText(QString::fromLatin1("Doxywizard version: %1").arg(QString::fromLatin1(getFullVersion()))); + msgBox.exec(); + exit(0); + } } if (argc > 2) { -- cgit v0.12