From e24792e0dbf560d96ea7b74b0d85158313a5d896 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 27 May 2008 21:50:33 +0200 Subject: [PATCH] Option -V shows version and only version and exists. --- src/metaproxy_prog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index b8625c8..b8739b8 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -85,7 +85,8 @@ int main(int argc, char **argv) uid = arg; break; case 'V': - std::cout << "Metaproxy " VERSION "\n"; + std::cout << VERSION "\n"; + std::exit(0); break; case 'X': mode = YAZ_DAEMON_DEBUG; @@ -97,7 +98,7 @@ int main(int argc, char **argv) } if (!fname) { - std::cerr << "No configuration given\n"; + std::cerr << "No configuration given; use -h for help\n"; std::exit(1); } -- 1.7.10.4