From 835e0f517f0263f06011d6b97923ce3412ea2a96 Mon Sep 17 00:00:00 2001 From: Maxime AILLOUD Date: Wed, 18 May 2011 15:33:27 +0200 Subject: [PATCH] No need of "--" when adding an option in a command, automatically add --- Command/BuildCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Command/BuildCommand.php b/Command/BuildCommand.php index 4086c55..ef3adae 100644 --- a/Command/BuildCommand.php +++ b/Command/BuildCommand.php @@ -29,9 +29,9 @@ class BuildCommand extends PhingCommand $this ->setDescription('Hub for Propel build commands (model, sql)') ->setDefinition(array( - new InputOption('--classes', '', InputOption::VALUE_NONE, 'Build only classes'), - new InputOption('--sql', '', InputOption::VALUE_NONE, 'Build only code'), - new InputOption('--insert-sql', '', InputOption::VALUE_NONE, 'Build all and insert SQL'), + new InputOption('classes', '', InputOption::VALUE_NONE, 'Build only classes'), + new InputOption('sql', '', InputOption::VALUE_NONE, 'Build only code'), + new InputOption('insert-sql', '', InputOption::VALUE_NONE, 'Build all and insert SQL'), new InputOption('connection', null, InputOption::VALUE_OPTIONAL, 'Set this parameter to define a connection to use') )) ->setName('propel:build'); @@ -64,7 +64,7 @@ class BuildCommand extends PhingCommand $insertCommand->setApplication($this->getApplication()); // By-pass the '--force' required option - $this->addOption('--force', '', InputOption::VALUE_NONE, ''); + $this->addOption('force', '', InputOption::VALUE_NONE, ''); $input->setOption('force', true); $insertCommand->execute($input, $output);