@@ 203-210 (lines=8) @@ | ||
200 | 'arguments' => [], |
|
201 | 'options' => [], |
|
202 | ]; |
|
203 | foreach ($this->arguments()->getValues() as $key => $val) { |
|
204 | $info['arguments'][$key] = [ |
|
205 | 'description' => $this->arguments()->getDescription($key), |
|
206 | ]; |
|
207 | if ($this->arguments()->hasDefault($key)) { |
|
208 | $info['arguments'][$key]['default'] = $val; |
|
209 | } |
|
210 | } |
|
211 | foreach ($this->options()->getValues() as $key => $val) { |
|
212 | $info['options'][$key] = [ |
|
213 | 'description' => $this->options()->getDescription($key), |
|
@@ 211-218 (lines=8) @@ | ||
208 | $info['arguments'][$key]['default'] = $val; |
|
209 | } |
|
210 | } |
|
211 | foreach ($this->options()->getValues() as $key => $val) { |
|
212 | $info['options'][$key] = [ |
|
213 | 'description' => $this->options()->getDescription($key), |
|
214 | ]; |
|
215 | if ($this->options()->hasDefault($key)) { |
|
216 | $info['options'][$key]['default'] = $val; |
|
217 | } |
|
218 | } |
|
219 | foreach ($this->getParameters() as $i => $parameter) { |
|
220 | // TODO: Also cache input/output params |
|
221 | } |