Skip to content

Commit 52d95e4

Browse files
committed
Fix the behavior if no arg is given
1 parent dd53e6c commit 52d95e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phpctags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ EOF;
3535
exit;
3636
}
3737

38+
array_shift($argv);
39+
3840
$file = array_pop($argv);
3941

4042
if(!isset($options['excmd']))

0 commit comments

Comments
 (0)