Skip to content

Commit

Permalink
get operand from getopt
Browse files Browse the repository at this point in the history
  • Loading branch information
tflori committed Oct 29, 2018
1 parent 19e13bf commit 8a0c3c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skeleton/Skeleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ protected function setup(GetOpt $getOpt, array $vars)
* @param array $vars
* @param string $target
*/
protected function createProject(GetOpt $getOpt, array $vars, string $target)
protected function createProject(GetOpt $getOpt, array $vars)
{
$target = $getOpt->getOperand('target');
if (!file_exists($target)) {
$this->makeDir($target);
} elseif (count(scandir($target)) !== 2) {
Expand Down

0 comments on commit 8a0c3c6

Please sign in to comment.