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

Commit

Permalink
Add a regexps-exclude option
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetitcolas committed Aug 22, 2014
1 parent a7488a0 commit b48d6e6
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 @@ -92,6 +92,13 @@ protected function configure()
'A comma-separated list of file names to exclude',
array()
)
->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 @@ -146,7 +153,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 b48d6e6

Please sign in to comment.