X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3ca9e5d8ad653317f1ff1a5dd7c7ae0bc419180a..ac669e8b922c7ace230294f9bf9a3a2bdfbd19d2:/options.c diff --git a/options.c b/options.c index 527797f1..d7c7cbec 100644 --- a/options.c +++ b/options.c @@ -373,7 +373,7 @@ void usage(enum logcode F) rprintf(F," -6, --ipv6 prefer IPv6\n"); #endif rprintf(F," --version print version number\n"); - rprintf(F," --help show this help screen\n"); + rprintf(F,"(-h) --help show this help (-h works with no other options)\n"); rprintf(F,"\nUse \"rsync --daemon --help\" to see the daemon-mode command-line options.\n"); rprintf(F,"Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.\n"); @@ -1643,11 +1643,10 @@ void server_options(char **args,int *argc) args[ac++] = "--only-write-batch=X"; if (am_root > 1) args[ac++] = "--super"; + if (size_only) + args[ac++] = "--size-only"; } - if (size_only) - args[ac++] = "--size-only"; - if (modify_window_set) { if (asprintf(&arg, "--modify-window=%d", modify_window) < 0) goto oom;