no-backup instead of nobackup
This commit is contained in:
parent
5c01e8e99e
commit
48d078a856
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user