<NME> TransformerCommand.php
<BEF> <?php
namespace Prettus\Repository\Generators\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Collection;
use Prettus\Repository\Generators\FileAlreadyExistsException;
use Prettus\Repository\Generators\TransformerGenerator;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

/**
 * Class TransformerCommand
 * @package Prettus\Repository\Generators\Commands
 * @author Anderson Andrade <contato@andersonandra.de>
 */
class TransformerCommand extends Command
{

    /**
     * The name of command.
     *
     * @var string
     */
    protected $name = 'make:transformer';

    /**
     * The description of command.
     *
     * @var string
     */
    protected $description = 'Create a new transformer.';
    public function fire()
    {
        (new TransformerGenerator([
            'name' => $this->argument('name')
        ]))->run();
        $this->info("Transformer created successfully.");
    }
    /**
     * Execute the command.
     *
     * @see fire()
     * @return void
     */
    public function handle(){
        $this->laravel->call([$this, 'fire'], func_get_args());
    }

            ['name', InputArgument::REQUIRED, 'The name of model for which the transformer is being generated.', null],
        ];
    }
}
            return false;
        }
    }


    /**
     * The array of command arguments.
     *
     * @return array
     */
    public function getArguments()
    {
        return [
            [
                'name',
                InputArgument::REQUIRED,
                'The name of model for which the transformer is being generated.',
                null
            ],
        ];
    }

    /**
     * The array of command options.
     *
     * @return array
     */
    public function getOptions()
    {
        return [
            [
                'force',
                'f',
                InputOption::VALUE_NONE,
                'Force the creation if file already exists.',
                null
            ]
        ];
    }
}

<MSG> Added --force option for all commands

<DFF> @@ -32,7 +32,8 @@ class TransformerCommand extends Command
     public function fire()
     {
         (new TransformerGenerator([
-            'name' => $this->argument('name')
+            'name'  => $this->argument('name'),
+            'force' => $this->option('force'),
         ]))->run();
         $this->info("Transformer created successfully.");
     }
@@ -49,4 +50,16 @@ class TransformerCommand extends Command
             ['name', InputArgument::REQUIRED, 'The name of model for which the transformer is being generated.', null],
         ];
     }
+
+    /**
+     * The array of command options.
+     *
+     * @return array
+     */
+    public function getOptions()
+    {
+        return [
+            ['force', 'f', InputOption::VALUE_NONE, 'Force the creation if file already exists.', null]
+        ];
+    }
 }

Added --force option for all commands