Set parameter required for --dm option on ODM console commands.

This commit is contained in:
Justin Hileman 2010-09-08 11:50:33 -04:00 committed by Fabien Potencier
parent 51553211f3
commit e6b0d54531
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class CreateSchemaDoctrineODMCommand extends CreateCommand
$this
->setName('doctrine:odm:schema:create')
->addOption('dm', null, InputOption::PARAMETER_OPTIONAL, 'The document manager to use for this command.')
->addOption('dm', null, InputOption::PARAMETER_REQUIRED, 'The document manager to use for this command.')
->setHelp(<<<EOT
The <info>doctrine:odm:schema:create</info> command creates the default document manager's schema:

View File

@ -22,7 +22,7 @@ class DropSchemaDoctrineODMCommand extends DropCommand
$this
->setName('doctrine:odm:schema:drop')
->addOption('dm', null, InputOption::PARAMETER_OPTIONAL, 'The document manager to use for this command.')
->addOption('dm', null, InputOption::PARAMETER_REQUIRED, 'The document manager to use for this command.')
->setHelp(<<<EOT
The <info>doctrine:odm:schema:drop</info> command drops the default document manager's schema: