Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8d36af
)
Introduced long-option names for -4 and -6.
author
Wayne Davison
<wayned@samba.org>
Thu, 6 May 2004 21:08:01 +0000
(21:08 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 6 May 2004 21:08:01 +0000
(21:08 +0000)
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
b14ef1c
..
b783fca
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-290,11
+290,11
@@
void usage(enum logcode F)
rprintf(F," --bwlimit=KBPS limit I/O bandwidth, KBytes per second\n");
rprintf(F," --write-batch=PREFIX write batch fileset starting with PREFIX\n");
rprintf(F," --read-batch=PREFIX read batch fileset starting with PREFIX\n");
rprintf(F," --bwlimit=KBPS limit I/O bandwidth, KBytes per second\n");
rprintf(F," --write-batch=PREFIX write batch fileset starting with PREFIX\n");
rprintf(F," --read-batch=PREFIX read batch fileset starting with PREFIX\n");
- rprintf(F," -h, --help show this help screen\n");
#ifdef INET6
#ifdef INET6
- rprintf(F," -4
prefer IPv4\n");
- rprintf(F," -6
prefer IPv6\n");
+ rprintf(F," -4
--ipv4
prefer IPv4\n");
+ rprintf(F," -6
--ipv6
prefer IPv6\n");
#endif
#endif
+ rprintf(F," -h, --help show this help screen\n");
rprintf(F,"\n");
rprintf(F,"\n");
@@
-312,8
+312,8
@@
static struct poptOption long_options[] = {
/* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
{"version", 0, POPT_ARG_NONE, 0, OPT_VERSION, 0, 0},
{"suffix", 0, POPT_ARG_STRING, &backup_suffix, 0, 0, 0 },
/* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
{"version", 0, POPT_ARG_NONE, 0, OPT_VERSION, 0, 0},
{"suffix", 0, POPT_ARG_STRING, &backup_suffix, 0, 0, 0 },
- {"rsync-path", 0, POPT_ARG_STRING, &rsync_path,
0, 0, 0 },
- {"password-file", 0, POPT_ARG_STRING, &password_file,
0, 0, 0 },
+ {"rsync-path", 0, POPT_ARG_STRING, &rsync_path, 0, 0, 0 },
+ {"password-file", 0, POPT_ARG_STRING, &password_file, 0, 0, 0 },
{"ignore-times", 'I', POPT_ARG_NONE, &ignore_times, 0, 0, 0 },
{"size-only", 0, POPT_ARG_NONE, &size_only, 0, 0, 0 },
{"modify-window", 0, POPT_ARG_INT, &modify_window, OPT_MODIFY_WINDOW, 0, 0 },
{"ignore-times", 'I', POPT_ARG_NONE, &ignore_times, 0, 0, 0 },
{"size-only", 0, POPT_ARG_NONE, &size_only, 0, 0, 0 },
{"modify-window", 0, POPT_ARG_INT, &modify_window, OPT_MODIFY_WINDOW, 0, 0 },
@@
-387,8
+387,8
@@
static struct poptOption long_options[] = {
{"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
{"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 },
#ifdef INET6
{"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
{"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 },
#ifdef INET6
- {
0,
'4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
- {
0,
'6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
+ {
"ipv4",
'4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
+ {
"ipv6",
'6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
#endif
{0,0,0,0, 0, 0, 0}
};
#endif
{0,0,0,0, 0, 0, 0}
};