From: Adam Dickmeiss Date: Tue, 27 May 2008 19:50:33 +0000 (+0200) Subject: Option -V shows version and only version and exists. X-Git-Tag: v1.0.14~22 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=e24792e0dbf560d96ea7b74b0d85158313a5d896;p=metaproxy-moved-to-github.git Option -V shows version and only version and exists. --- 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); }