@@ 125-131 (lines=7) @@ | ||
122 | $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $match); |
|
123 | } |
|
124 | ||
125 | protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set, $nameAndDescription) |
|
126 | { |
|
127 | $variableName = $this->commandInfo->findMatchingOption($nameAndDescription['name']); |
|
128 | $desc = $nameAndDescription['description']; |
|
129 | $description = static::removeLineBreaks($desc); |
|
130 | $set->add($variableName, $description); |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * Store the data from a @default annotation in our argument or option store, |
@@ 85-91 (lines=7) @@ | ||
82 | $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $match); |
|
83 | } |
|
84 | ||
85 | protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set, $nameAndDescription) |
|
86 | { |
|
87 | $variableName = $this->commandInfo->findMatchingOption($nameAndDescription['name']); |
|
88 | $desc = $nameAndDescription['description']; |
|
89 | $description = static::removeLineBreaks($desc); |
|
90 | $set->add($variableName, $description); |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * Store the data from a @default annotation in our argument or option store, |