Skip to content

Commit 9e7a077

Browse files
committed
Option must have set option type
1 parent dcbf167 commit 9e7a077

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Commands/TypeToNewIndex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function configure() : void
3434
->addArgument('indexTo', \Symfony\Component\Console\Input\InputArgument::REQUIRED)
3535
->addArgument('aliasTo', \Symfony\Component\Console\Input\InputArgument::REQUIRED)
3636
->addArgument('typeTo', \Symfony\Component\Console\Input\InputArgument::OPTIONAL, 'Use only on old ElasticSearch', NULL)
37-
->addOption('allowClose', 'c', NULL,
37+
->addOption('allowClose', 'c', \Symfony\Component\Console\Input\InputOption::VALUE_OPTIONAL,
3838
'Allows command to close index for data transfer. After data is transferred index is opened and resumes normal operations. When open it needs to check changed files after move and sync remaining.',
3939
TRUE
4040
)

0 commit comments

Comments
 (0)