Skip to content

[PROPOSAL] Entity Generator --no-backup option #196

@loiclavoie

Description

@loiclavoie

Package version, Laravel version

5.3

Expected behaviour

When running the command, the option --no-backup shouldn't expect a parameter. It should be, if present, false, otherwise true.

Actual behaviour

At the moment, this line put True when --no-backup is present
$entityGenerator->setBackupExisting(!$this->option('no-backup'));
(GenerateEntitiesCommand.php:81)
So when the command is ran with --no-backup, backup files are still generated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions