Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #100 from jpetitcolas/paths_exclude
Browse files Browse the repository at this point in the history
[RFR] Add a regexps-exclude option
  • Loading branch information
sebastianbergmann authored Jan 24, 2017
2 parents d7b9fef + b48d6e6 commit 3e4cf13
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/CLI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ protected function configure()
'A comma-separated list of file names to exclude',
[]
)
->addOption(
'regexps-exclude',
null,
InputOption::VALUE_REQUIRED,
'A comma-separated list of paths regexps to exclude (example: "#var/.*_tmp#")',
array()
)
->addOption(
'exclude',
null,
Expand Down Expand Up @@ -110,7 +117,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$input->getArgument('values'),
$input->getOption('exclude'),
$this->handleCSVOption($input, 'names'),
$this->handleCSVOption($input, 'names-exclude')
$this->handleCSVOption($input, 'names-exclude'),
$this->handleCSVOption($input, 'regexps-exclude')
);

$files = $finder->findFiles();
Expand Down

0 comments on commit 3e4cf13

Please sign in to comment.