Skip to content

Commit

Permalink
Merge pull request #301 from freezy-sk/pull-options-fix
Browse files Browse the repository at this point in the history
path and templatePath requires value when defined as options
  • Loading branch information
JeffreyWay committed Apr 2, 2014
2 parents d45aaba + ce9c814 commit 6b7295b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Way/Generators/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ protected function getPathByOptionOrConfig($option, $configName)
protected function getOptions()
{
return [
['path', null, InputOption::VALUE_OPTIONAL, 'Where should the file be created?'],
['templatePath', null, InputOption::VALUE_OPTIONAL, 'The location of the template for this generator']
['path', null, InputOption::VALUE_REQUIRED, 'Where should the file be created?'],
['templatePath', null, InputOption::VALUE_REQUIRED, 'The location of the template for this generator']
];
}

Expand Down

0 comments on commit 6b7295b

Please sign in to comment.