Skip to content

Commit

Permalink
Add arginfo to env command
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jan 29, 2016
1 parent 1c2614f commit b098462
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/PhpBrew/Command/EnvCommand.php
Expand Up @@ -11,6 +11,17 @@ public function brief()
return 'Export environment variables';
}

public function arguments($args)
{
$args->add('installed php')
->optional()
->validValues(function() {
return \PhpBrew\Config::getInstalledPhpVersions();
})
;
}


public function execute($buildName = NULL)
{
// get current version
Expand Down
3 changes: 2 additions & 1 deletion src/PhpBrew/Command/PurgeCommand.php
Expand Up @@ -10,7 +10,8 @@
*/
class PurgeCommand extends Command
{
public function arguments($args) {
public function arguments($args)
{
$args->add('installed php')
->validValues(function(){
return Config::getInstalledPhpVersions();
Expand Down

0 comments on commit b098462

Please sign in to comment.