Skip to content

Commit 9bb43b8

Browse files
sandermarechalweynhamz
authored andcommitted
Add support for --exclude option
1 parent 4b7839e commit 9bb43b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

phpctags

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if (is_dir($vendor = __DIR__ . '/vendor')) {
1515
$options = getopt('af:R',array(
1616
'append::',
1717
'debug',
18+
'exclude:',
1819
'excmd::',
1920
'fields::',
2021
'format::',
@@ -83,6 +84,10 @@ if (isset($options['R'])) {
8384
continue;
8485
}
8586

87+
if (isset($options['exclude']) && false !== strpos($filename, $options['exclude'])) {
88+
continue;
89+
}
90+
8691
$result .= $ctags->export($filename, $options);
8792
}
8893
} else {

0 commit comments

Comments
 (0)