handleShortOption(option.charAt(i));
char optChar = option.charAt(charIndex); Option found = null; for (int i = options.size() - 1; i >= 0; --i) { Option opt = (Option) options.get(i); if (optChar == opt.getShortName()) { found = opt; break; } } if (found == null) { String msg = MessageFormat.format(Messages.getString("Parser.UnrecDash"), new Object[] { "" + optChar }); throw new OptionException(msg); } String argument = null; if (found.getTakesArgument()) {    if (found.isJoined() && charIndex + 1 < option.length()) { argument = option.substring(charIndex + 1); charIndex = option.length(); } else argument = getArgument("-" + optChar); } found.parsed(argument);
  private void handleShortOptions(String option) throws OptionException  {    for (int i = 1; i < option.length(); ++i)      {        handleShortOption(option.charAt(i));      }  }