From a2edecd492386841d341190df0519be2c10056d6 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 19 Jul 2023 16:18:39 -0700 Subject: [PATCH] consolidate version_information --- src/describe.cpp | 8 ++++++++ src/pvxs/util.h | 11 +++++++++++ tools/call.cpp | 4 +--- tools/get.cpp | 4 +--- tools/info.cpp | 4 +--- tools/list.cpp | 4 +--- tools/monitor.cpp | 4 +--- tools/mshim.cpp | 4 +--- tools/put.cpp | 4 +--- tools/pvxvct.cpp | 5 ++--- 10 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/describe.cpp b/src/describe.cpp index 91b30fdc2..66bd96cea 100644 --- a/src/describe.cpp +++ b/src/describe.cpp @@ -132,4 +132,12 @@ std::ostream& target_information(std::ostream& strm) return strm; } +std::ostream& version_information(std::ostream& strm) +{ + strm< #include +#include #include #include @@ -133,9 +134,7 @@ int main(int argc, char *argv[]) usage(argv[0]); return 0; case 'V': - std::cout<