Allow "--in-place" as an alternative option name for "--inplace"
Jan-Benedict Glaw
jbglaw at lug-owl.de
Wed Jun 26 20:53:06 UTC 2019
Hi!
As I commonly spell --inplace as --in-place, I'd like to suggest this
simple patch:
commit 5689f99b702788044a45e13582559832cf986328
Author: Jan-Benedict Glaw <jbglaw at lug-owl.de>
Date: Wed Jun 26 22:49:31 2019 +0200
Allow "--in-place" as an alternative option name for "--inplace".
diff --git a/options.c b/options.c
index e5b0cb68..7ff0c51d 100644
--- a/options.c
+++ b/options.c
@@ -926,6 +926,7 @@ static struct poptOption long_options[] = {
{"no-S", 0, POPT_ARG_VAL, &sparse_files, 0, 0, 0 },
{"preallocate", 0, POPT_ARG_NONE, &preallocate_files, 0, 0, 0},
{"inplace", 0, POPT_ARG_VAL, &inplace, 1, 0, 0 },
+ {"in-place", 0, POPT_ARG_VAL, &inplace, 1, 0, 0 },
{"no-inplace", 0, POPT_ARG_VAL, &inplace, 0, 0, 0 },
{"append", 0, POPT_ARG_NONE, 0, OPT_APPEND, 0, 0 },
{"append-verify", 0, POPT_ARG_VAL, &append_mode, 2, 0, 0 },
Thanks,
Jan-Benedict
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/rsync/attachments/20190626/9f637af1/signature.sig>
More information about the rsync
mailing list