We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f4bb3 commit 942b358Copy full SHA for 942b358
phpctags
@@ -12,7 +12,7 @@ if (is_dir($vendor = __DIR__ . '/vendor')) {
12
);
13
}
14
15
-$options = getopt('f:',array(
+$options = getopt('af:',array(
16
'debug',
17
'excmd::',
18
'fields::',
@@ -51,7 +51,7 @@ $ctags = new PHPCtags();
51
$result = $ctags->export($file, $options);
52
53
if (isset($options['f']) && $options['f'] !== '-') {
54
- $tagfile = fopen($options['f'], 'w');
+ $tagfile = fopen($options['f'], isset($options['a']) ? 'a' : 'w');
55
} else {
56
$tagfile = fopen('php://stdout', 'w');
57
0 commit comments