diff --git a/src/CLI/Command.php b/src/CLI/Command.php index be245737..815fca93 100644 --- a/src/CLI/Command.php +++ b/src/CLI/Command.php @@ -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, @@ -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();