-# To disable a long-named option, change its value to a 0 (NOTE: at least
-# one option appears in two places!). A value of -1 means the arg doesn't
-# need checking, a 1 means to check it, a 2 means only check when receiving.
-our %long_no_arg = (
- 'copy-unsafe-links' => -1,
- 'daemon' => -1,
- 'delay-updates' => -1,
- 'delete' => -1,
- 'delete-after' => -1,
- 'delete-before' => -1,
- 'delete-during' => -1,
- 'delete-excluded' => -1,
- 'existing' => -1,
- 'force' => -1,
- 'from0' => -1,
- 'fuzzy' => -1,
- 'ignore-errors' => -1,
- 'ignore-existing' => -1,
- 'inplace' => -1,
- 'list-only' => -1,
- 'no-implied-dirs' => -1,
- 'no-relative' => -1,
- 'numeric-ids' => -1,
- 'partial' => -1,
- 'remove-sent-files' => $ro ? 0 : -1,
- 'safe-links' => -1,
- 'sender' => -1,
- 'server' => -1,
- 'size-only' => -1,
-);
-our %long_with_arg = (
- 'bwlimit' => -1,
- 'checksum-seed' => -1,
- 'files-from' => 1,
- 'log-format' => -1,
- 'max-delete' => -1,
- 'modify-window' => -1,
- 'only-write-batch' => -1,
- 'suffix' => -1,
- 'timeout' => -1,
-);
-our %long_before_arg = (
+# To disable a long-named option, change its value to a -1. The values mean:
+# 0 = the option has no arg; 1 = the arg doesn't need any checking; 2 = only
+# check the arg when receiving; and 3 = always check the arg.
+our %long_opt = (