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

Commit 3e4cf13

Browse files
Merge pull request #100 from jpetitcolas/paths_exclude
[RFR] Add a regexps-exclude option
2 parents d7b9fef + b48d6e6 commit 3e4cf13

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/CLI/Command.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ protected function configure()
5656
'A comma-separated list of file names to exclude',
5757
[]
5858
)
59+
->addOption(
60+
'regexps-exclude',
61+
null,
62+
InputOption::VALUE_REQUIRED,
63+
'A comma-separated list of paths regexps to exclude (example: "#var/.*_tmp#")',
64+
array()
65+
)
5966
->addOption(
6067
'exclude',
6168
null,
@@ -110,7 +117,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
110117
$input->getArgument('values'),
111118
$input->getOption('exclude'),
112119
$this->handleCSVOption($input, 'names'),
113-
$this->handleCSVOption($input, 'names-exclude')
120+
$this->handleCSVOption($input, 'names-exclude'),
121+
$this->handleCSVOption($input, 'regexps-exclude')
114122
);
115123

116124
$files = $finder->findFiles();

0 commit comments

Comments
 (0)