faubackup2/src main.cpp,1.6,1.7
Martin Waitz <[email protected]> Tue, 07 Jun 2005 22:03:51 +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-serv21808/src
Modified Files:
main.cpp
Log Message:
better help text
Index: main.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/main.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** main.cpp 7 Jun 2005 20:58:02 -0000 1.6
--- main.cpp 7 Jun 2005 22:03:49 -0000 1.7
***************
*** 49,53 ****
"don't cross filesystem boundaries"},
{ "dry-run", 'n', POPT_ARG_NONE, &do_nothing, 0,
! "don't cross filesystem boundaries"},
{ "server", '\0', POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN,
&server_destdir},
--- 49,53 ----
"don't cross filesystem boundaries"},
{ "dry-run", 'n', POPT_ARG_NONE, &do_nothing, 0,
! "don't create a new backup, test only"},
{ "server", '\0', POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN,
&server_destdir},
***************
*** 61,64 ****
--- 61,65 ----
/* argument parsing */
popt = poptGetContext("faubackup", argc, argv, options, 0);
+ poptSetOtherOptionHelp(popt, "[OPTION...] [host:]source [host:]destination");
while ((rc = poptGetNextOpt(popt)) != -1) {
switch (rc) {
***************
*** 100,103 ****
--- 101,105 ----
}
struct cmdline_data source = parseCmdArg(temp);
+
if ((temp = poptGetArg(popt)) == NULL) {
poptPrintUsage(popt, stderr, 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