X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/dafe63ca98a99e98c0757fb8c3d5e4de02db39fe..a1e0e45e0121de619175e86db2e34be62b862646:/options.c diff --git a/options.c b/options.c index dd70623c..1652aed2 100644 --- a/options.c +++ b/options.c @@ -230,7 +230,7 @@ void usage(enum logcode F) rprintf(F," --no-whole-file turn off --whole-file\n"); rprintf(F," -x, --one-file-system don't cross filesystem boundaries\n"); rprintf(F," -B, --block-size=SIZE checksum blocking size (default %d)\n",BLOCK_SIZE); - rprintf(F," -e, --rsh=COMMAND specify rsh replacement\n"); + rprintf(F," -e, --rsh=COMMAND specify the remote shell\n"); rprintf(F," --rsync-path=PATH specify path to rsync on the remote machine\n"); rprintf(F," -C, --cvs-exclude auto ignore files in the same way CVS does\n"); rprintf(F," --existing only update files that already exist\n"); @@ -306,7 +306,7 @@ static struct poptOption long_options[] = { {"delete", 0, POPT_ARG_NONE, &delete_mode , 0, 0, 0 }, {"existing", 0, POPT_ARG_NONE, &only_existing , 0, 0, 0 }, {"ignore-existing", 0, POPT_ARG_NONE, &opt_ignore_existing , 0, 0, 0 }, - {"delete-after", 0, POPT_ARG_NONE, &delete_after , 0, 0, 0 }, + {"delete-after", 0, POPT_ARG_NONE, 0, OPT_DELETE_AFTER, 0, 0 }, {"delete-excluded", 0, POPT_ARG_NONE, 0, OPT_DELETE_EXCLUDED, 0, 0 }, {"force", 0, POPT_ARG_NONE, &force_delete , 0, 0, 0 }, {"numeric-ids", 0, POPT_ARG_NONE, &numeric_ids , 0, 0, 0 }, @@ -476,7 +476,12 @@ int parse_arguments(int *argc, const char ***argv, int frommain) * non-default setting. */ modify_window_set = 1; break; - + + case OPT_DELETE_AFTER: + delete_after = 1; + delete_mode = 1; + break; + case OPT_DELETE_EXCLUDED: delete_excluded = 1; delete_mode = 1;