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

Commit 64df61f

Browse files
committed
Fix option check
1 parent b172663 commit 64df61f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Command/Bootstrap.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@ public function execute(InputInterface $input, OutputInterface $output)
5050
"<fg=white;bg=magenta>Initializing Codeception in " . $realpath . "</fg=white;bg=magenta>\n"
5151
);
5252

53-
if ($input->getOption('compat')) {
53+
$compatibilitySetup = false;
54+
try {
55+
$compatibilitySetup = $input->getOption('compat');
56+
} catch (InvalidArgumentException $e) {
57+
$compatibilitySetup = false;
58+
}
59+
60+
if ($compatibilitySetup) {
5461
$this->compatibilitySetup($output);
5562
} elseif ($input->getOption('customize')) {
5663
$this->customize($output);

0 commit comments

Comments
 (0)