projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22c667c
)
Option -V shows version and only version and exists.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 27 May 2008 19:50:33 +0000
(21:50 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 27 May 2008 19:50:33 +0000
(21:50 +0200)
src/metaproxy_prog.cpp
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
b8625c8
..
b8739b8
100644
(file)
--- 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);
}