From b48d6e625daa60d18c4a900849a1f4f5e5d7f773 Mon Sep 17 00:00:00 2001 From: Jonathan Petitcolas Date: Fri, 22 Aug 2014 16:20:19 +0200 Subject: [PATCH] Add a regexps-exclude option --- src/CLI/Command.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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();