Skip to content

Commit 33b552b

Browse files
committed
Better local name
1 parent f4ab6c9 commit 33b552b

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/main/java/org/apache/commons/cli/Parser.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,35 +166,35 @@ public CommandLine parse(final Options options, final String[] arguments, final
166166

167167
// process each flattened token
168168
while (iterator.hasNext()) {
169-
final String t = iterator.next();
169+
final String token = iterator.next();
170170

171171
// the value is the double-dash
172-
if ("--".equals(t)) {
172+
if ("--".equals(token)) {
173173
eatTheRest = true;
174174
}
175175

176176
// the value is a single dash
177-
else if ("-".equals(t)) {
177+
else if ("-".equals(token)) {
178178
if (stopAtNonOption) {
179179
eatTheRest = true;
180180
} else {
181-
cmd.addArg(t);
181+
cmd.addArg(token);
182182
}
183183
}
184184

185185
// the value is an option
186-
else if (t.startsWith("-")) {
187-
if (stopAtNonOption && !getOptions().hasOption(t)) {
186+
else if (token.startsWith("-")) {
187+
if (stopAtNonOption && !getOptions().hasOption(token)) {
188188
eatTheRest = true;
189-
cmd.addArg(t);
189+
cmd.addArg(token);
190190
} else {
191-
processOption(t, iterator);
191+
processOption(token, iterator);
192192
}
193193
}
194194

195195
// the value is an argument
196196
else {
197-
cmd.addArg(t);
197+
cmd.addArg(token);
198198

199199
if (stopAtNonOption) {
200200
eatTheRest = true;

0 commit comments

Comments
 (0)