@@ 89-98 (lines=10) @@ | ||
86 | /** |
|
87 | * Store the data from a @arg annotation in our argument descriptions. |
|
88 | */ |
|
89 | protected function processArgumentTag($tag) |
|
90 | { |
|
91 | if (!$tag->hasVariable($matches)) { |
|
92 | throw new \Exception('Could not determine argument name from tag ' . (string)$tag); |
|
93 | } |
|
94 | if ($matches['variable'] == $this->optionParamName()) { |
|
95 | return; |
|
96 | } |
|
97 | $this->addOptionOrArgumentTag($tag, $this->commandInfo->arguments(), $matches['variable'], $matches['description']); |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * Store the data from an @option annotation in our option descriptions. |
|
@@ 103-109 (lines=7) @@ | ||
100 | /** |
|
101 | * Store the data from an @option annotation in our option descriptions. |
|
102 | */ |
|
103 | protected function processOptionTag($tag) |
|
104 | { |
|
105 | if (!$tag->hasVariable($matches)) { |
|
106 | throw new \Exception('Could not determine option name from tag ' . (string)$tag); |
|
107 | } |
|
108 | $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $matches['variable'], $matches['description']); |
|
109 | } |
|
110 | ||
111 | protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set, $name, $description) |
|
112 | { |