faubackup2/src main.cpp,1.5,1.6
Martin Waitz <[email protected]> Tue, 07 Jun 2005 20:58:10 +0000
| Newsgroups | gmane.comp.sysutils.backup.faubackup.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/faubackup/faubackup2/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16057/src
Modified Files:
main.cpp
Log Message:
add --version
Index: main.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/main.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** main.cpp 7 Jun 2005 20:56:54 -0000 1.5
--- main.cpp 7 Jun 2005 20:58:02 -0000 1.6
***************
*** 54,57 ****
--- 54,58 ----
{ "client", '\0', POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN,
&client_sourcedir},
+ { "version", 0, POPT_ARG_NONE, 0, 'V'},
POPT_AUTOHELP
POPT_TABLEEND
***************
*** 62,68 ****
while ((rc = poptGetNextOpt(popt)) != -1) {
switch (rc) {
! case 'v' :
verbose++;
break;
}
}
--- 63,72 ----
while ((rc = poptGetNextOpt(popt)) != -1) {
switch (rc) {
! case 'v':
verbose++;
break;
+ case 'V':
+ printf("%s\n", PACKAGE_STRING);
+ exit(0);
}
}
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20