X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmetaproxy_prog.cpp;h=b8739b858e551b7cf0712c8cb26fd23d91b30674;hb=a7020481dc997994cdb7493d014436853df7f8e5;hp=b8625c85aeb326ff9aad2f4ca56181345f732804;hpb=e9530d6289df9b848e4901d7c73f5a2f27706d66;p=metaproxy-moved-to-github.git 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); }