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:
ef8d07c
)
Option --version/-V shows program version
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 29 Apr 2006 08:51:00 +0000
(08:51 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 29 Apr 2006 08:51:00 +0000
(08:51 +0000)
src/metaproxy_prog.cpp
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
d6f8251
..
d5e5d1f
100644
(file)
--- a/
src/metaproxy_prog.cpp
+++ b/
src/metaproxy_prog.cpp
@@
-1,4
+1,4
@@
-/* $Id: metaproxy_prog.cpp,v 1.3 2006-04-29 08:47:40 adam Exp $
+/* $Id: metaproxy_prog.cpp,v 1.4 2006-04-29 08:51:00 adam Exp $
Copyright (c) 2005-2006, Index Data.
%LICENSE%
Copyright (c) 2005-2006, Index Data.
%LICENSE%
@@
-26,6
+26,7
@@
int main(int argc, char **argv)
po::options_description desc("Allowed options");
desc.add_options()
("help,h", "produce help message")
po::options_description desc("Allowed options");
desc.add_options()
("help,h", "produce help message")
+ ("version,V", "show version")
("config", po::value< std::vector<std::string> >(), "xml config")
;
("config", po::value< std::vector<std::string> >(), "xml config")
;
@@
-41,7
+42,10
@@
int main(int argc, char **argv)
std::cout << desc << "\n";
return 1;
}
std::cout << desc << "\n";
return 1;
}
-
+ if (vm.count("version")) {
+ std::cout << "Metaproxy " VERSION "\n";
+ return 0;
+ }
xmlDocPtr doc = 0;
if (vm.count("config"))
{
xmlDocPtr doc = 0;
if (vm.count("config"))
{