From 997f22fbb9e714e07716aad000b5585f614189b5 Mon Sep 17 00:00:00 2001 From: Torben Date: Mon, 20 May 2013 10:06:11 +0200 Subject: [PATCH] add shortcut for force --- .../ORM/Tools/Console/Command/ConvertMappingCommand.php | 2 +- .../ORM/Tools/Console/Command/SchemaTool/DropCommand.php | 2 +- .../ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php index 020a4afaf..fbe482f3d 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php @@ -63,7 +63,7 @@ class ConvertMappingCommand extends Command 'The path to generate your entities classes.' ), new InputOption( - 'force', null, InputOption::VALUE_NONE, + 'force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.' ), new InputOption( diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php index ac003b991..df0c3f800 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php @@ -53,7 +53,7 @@ class DropCommand extends AbstractCommand 'Instead of try to apply generated SQLs into EntityManager Storage Connection, output them.' ), new InputOption( - 'force', null, InputOption::VALUE_NONE, + 'force', 'f', InputOption::VALUE_NONE, "Don't ask for the deletion of the database, but force the operation to run." ), new InputOption( diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php index 577fb9e0f..60e006dd2 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php @@ -65,7 +65,7 @@ class UpdateCommand extends AbstractCommand 'Dumps the generated SQL statements to the screen (does not execute them).' ), new InputOption( - 'force', null, InputOption::VALUE_NONE, + 'force', 'f', InputOption::VALUE_NONE, 'Causes the generated SQL statements to be physically executed against your database.' ), ));