Skip to content

Commit 6070a50

Browse files
committed
Show an error when using --stage
1 parent 81cd709 commit 6070a50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Application.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function doRun(InputInterface $input, OutputInterface $output): int
3333
{
3434
IO::init($input, $output);
3535

36+
if ($input->hasParameterOption(['--stage'], true)) {
37+
throw new Exception('The "--stage" option does not exist in the "bref" CLI. Use the "--env" option instead.');
38+
}
39+
3640
$result = parent::doRun($input, $output);
3741

3842
IO::stop();

0 commit comments

Comments
 (0)