Skip to content

Commit

Permalink
Update command signature
Browse files Browse the repository at this point in the history
  • Loading branch information
baopham committed Sep 13, 2015
1 parent 3e38ddd commit d7faa41
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/EnvDeployerMakeExampleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EnvDeployerMakeExampleCommand extends Command
*
* @var string
*/
protected $signature = 'envdeployer:make-example {--from=<base_path>/.env} {--to=<base_path>/.env.example}';
protected $signature = 'envdeployer:make-example {--from= : /path/to/.env. Default to <base_path>/.env} {--to= : /path/to/.env.example. Default to <base_path>/.env.example}';

protected $name = 'envdeployer:make-example';

Expand Down Expand Up @@ -76,20 +76,6 @@ public function makeExampleEnvArray($envPath)
return $exampleSettings;
}

/**
* Get the console command options.
* For compatibility with L5.0
*
* @return array
*/
protected function getOptions()
{
return [
['from', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_REQUIRED, 'The file path for the source .env', base_path('.env')],
['to', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_REQUIRED, 'The file path for the destination .env.example', base_path('.env.example')],
];
}

/**
* Get the file paths for the source .env and destination .env.example.
*
Expand Down

0 comments on commit d7faa41

Please sign in to comment.