1
0
mirror of synced 2025-01-24 01:01:41 +03:00

no-backup instead of nobackup

This commit is contained in:
Ronan Guilloux 2013-10-31 12:25:43 +01:00
parent 5c01e8e99e
commit 48d078a856

View File

@ -82,7 +82,7 @@ class GenerateEntitiesCommand extends Command
'Defines the number of indentation spaces', 4
),
new InputOption(
'nobackup', null, InputOption::VALUE_NONE,
'no-backup', null, InputOption::VALUE_NONE,
'Flag to define if generator should avoid backuping existing entity file if it exists.'
)
))
@ -145,7 +145,7 @@ EOT
$entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities'));
$entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities'));
$entityGenerator->setNumSpaces($input->getOption('num-spaces'));
$entityGenerator->setBackupExisting(!$input->getOption('nobackup'));
$entityGenerator->setBackupExisting(!$input->getOption('no-backup'));
if (($extend = $input->getOption('extend')) !== null) {
$entityGenerator->setClassToExtend($extend);