X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/b8a47c9bc6bae42b169a78223b2d60179555c6be..f490102454f8330cd67e8f5d1586ab973bf54966:/support/cull_options diff --git a/support/cull_options b/support/cull_options index dbbfc78d..3ef470df 100755 --- a/support/cull_options +++ b/support/cull_options @@ -4,13 +4,19 @@ # is included in the rrsync script. use strict; -our(%short_no_arg, %short_with_num, %long_opt); +our %short_no_arg; +our %short_with_num; +our %long_opt = ( + 'no-i-r' => 0, + 'fake-super' => 0, + 'log-file' => 3, +); our $last_long_opt; open(IN, '../options.c') or die "Unable to open ../options.c: $!\n"; while () { - if (/\Qargstr[x++]\E = '(.)'/) { + if (/\Qargstr[x++]\E = '([^.ie])'/) { $short_no_arg{$1} = 1; undef $last_long_opt; } elsif (/\Qasprintf(\E[^,]+, "-([a-zA-Z0-9])\%l?[ud]"/) { @@ -39,10 +45,10 @@ my $short_with_num = join('', sort keys %short_with_num); print < $val,\n";