Skip to content

Commit

Permalink
show elfutils version in --help message
Browse files Browse the repository at this point in the history
  • Loading branch information
lievenhey committed Dec 7, 2023
1 parent b5abd90 commit 267945f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#include <fcntl.h>
#endif

#include <elfutils/version.h>

enum ErrorCodes {
NoError,
TcpSocketError,
Expand Down Expand Up @@ -158,7 +160,7 @@ int main(int argc, char *argv[])
}

QCommandLineParser parser;
parser.setApplicationDescription(QStringLiteral("Perf data parser and unwinder."));
parser.setApplicationDescription(QStringLiteral("Perf data parser and unwinder.\nBuild with elfutils version: %1").arg(_ELFUTILS_VERSION));
parser.addHelpOption();
parser.addVersionOption();

Expand Down

0 comments on commit 267945f

Please sign in to comment.