summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelpers/check-feh-completion6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/check-feh-completion b/helpers/check-feh-completion
index 8744b03..2b08fb7 100755
--- a/helpers/check-feh-completion
+++ b/helpers/check-feh-completion
@@ -24,7 +24,11 @@ close($comp_file);
open(my $man_file, '<', $man_path) or die("Can't open $man_path: $!");
while (my $line = <$man_file>) {
- if ($line !~ /^ \.B \s (?: -(?<short> . ), \s )? --(?<long> [\w-]+ )/xo) {
+ if ($line !~ /^ \.It \s Cm \s (?: -(?<short> . ) \s , )? --(?<long> [\w-]+ )/xo) {
+ next;
+ }
+
+ if ($+{'long'} =~ / ^ action \d $ /xo) {
next;
}