Skip to content

Commit 4420d5f

Browse files
authored
Merge pull request #45 from patchlevel/fix-commands
fix VALUE_NONE
2 parents 72e754a + f059cef commit 4420d5f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Console/ProjectionRebuildCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function configure(): void
3434
$this
3535
->setName('event-sourcing:projection:rebuild')
3636
->setDescription('rebuild projection')
37-
->addOption('recreate', 'r', InputOption::VALUE_OPTIONAL, 'drop and create projections', false);
37+
->addOption('recreate', 'r', InputOption::VALUE_NONE, 'drop and create projections');
3838
}
3939

4040
protected function execute(InputInterface $input, OutputInterface $output): int

src/Console/SchemaCreateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function configure(): void
3131
$this
3232
->setName('event-sourcing:schema:create')
3333
->setDescription('create eventstore schema')
34-
->addOption('dry-run', 'd', InputOption::VALUE_OPTIONAL, 'dump schema create queries', false);
34+
->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'dump schema create queries');
3535
}
3636

3737
protected function execute(InputInterface $input, OutputInterface $output): int

src/Console/SchemaDropCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ protected function configure(): void
3131
$this
3232
->setName('event-sourcing:schema:drop')
3333
->setDescription('drop eventstore schema')
34-
->addOption('dry-run', 'd', InputOption::VALUE_OPTIONAL, 'dump schema drop queries', false)
35-
->addOption('force', 'f', InputOption::VALUE_OPTIONAL, 'force schema drop', false);
34+
->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'dump schema drop queries')
35+
->addOption('force', 'f', InputOption::VALUE_NONE, 'force schema drop');
3636
}
3737

3838
protected function execute(InputInterface $input, OutputInterface $output): int

src/Console/SchemaUpdateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ protected function configure(): void
3131
$this
3232
->setName('event-sourcing:schema:update')
3333
->setDescription('update eventstore schema')
34-
->addOption('dry-run', 'd', InputOption::VALUE_OPTIONAL, 'dump schema update queries', false)
35-
->addOption('force', 'f', InputOption::VALUE_OPTIONAL, 'force schema update', false);
34+
->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'dump schema update queries')
35+
->addOption('force', 'f', InputOption::VALUE_NONE, 'force schema update');
3636

3737
$this->setName('event-sourcing:schema:update');
3838
}

0 commit comments

Comments
 (0)