Skip to content

Commit

Permalink
Make the descriptions setter fluent (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen authored and mnapoli committed Aug 1, 2016
1 parent 9598766 commit b95e1be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Command extends \Symfony\Component\Console\Command\Command
* @param string $description Description of the command.
* @param array $argumentAndOptionDescriptions Descriptions of the arguments and options.
*
* @return $this
*
* @api
*/
public function descriptions($description, array $argumentAndOptionDescriptions = [])
Expand All @@ -30,6 +32,8 @@ public function descriptions($description, array $argumentAndOptionDescriptions
$this->setArgumentDescription($definition, $name, $value);
}
}

return $this;
}

/**
Expand Down

0 comments on commit b95e1be

Please sign in to comment.