…lines 1–121 unchanged (121 lines)
122 }
123 }
124
125 // single hyphen
126 else if ("-".equals(token))
127 {
128 processSingleHyphen(token);
129 }
130 else if (token.startsWith("-"))
131 {
132 if (token.length() == 2)
133 {
134 processOptionToken(token, stopAtNonOption);
…lines 135–206 unchanged (72 lines)
207 {
208 eatTheRest = true;
209 tokens.add("--");
210 tokens.add(value);
211 }
212 }
213 private void processSingleHyphen(String hyphen)
214 {
215 tokens.add(hyphen);
216 }
217
218 /**
219 * <p>If an {@link Option} exists for <code>token</code> then
220 * set the current option and add the token to the processed
221 * list.</p>
222 *
…lines 223–234 unchanged (12 lines)
235 currentOption = options.getOption(token);
236 tokens.add(token);
237 }
238 else if (stopAtNonOption)
239 {
240 eatTheRest = true;
241 }
242 }
243
244 /**
245 * <p>Breaks <code>token</code> into its constituent parts
246 * using the following algorithm.
247 * <ul>
…lines 248–301 unchanged (54 lines)