1
0
mirror of synced 2025-01-24 09:11:40 +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 'Defines the number of indentation spaces', 4
), ),
new InputOption( 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.' '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->setRegenerateEntityIfExists($input->getOption('regenerate-entities'));
$entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities')); $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities'));
$entityGenerator->setNumSpaces($input->getOption('num-spaces')); $entityGenerator->setNumSpaces($input->getOption('num-spaces'));
$entityGenerator->setBackupExisting(!$input->getOption('nobackup')); $entityGenerator->setBackupExisting(!$input->getOption('no-backup'));
if (($extend = $input->getOption('extend')) !== null) { if (($extend = $input->getOption('extend')) !== null) {
$entityGenerator->setClassToExtend($extend); $entityGenerator->setClassToExtend($extend);