code: private void handleShortAndLongOption(String token) throws OptionParserException {
          if (token.length() == 1) {
              // -S
              if (options.hasShortOption(token)) {
                  handleOption(options.getOption(token));
              } else {
                  handleUnknownToken(currentToken);
              }
              return;
          }
          int pos = token.indexOf('=');
          if (pos == -1) {
              // no equal sign found (-xxx)
              if (options.hasShortOption(token)) {
                  handleOption(options.getOption(token));
              } else if (!getMatchingLongOptions(token).isEmpty()) {
                  // -L or -l
                  handleLongOptionWithoutEqual(token);
              } else {
                  // look for a long prefix (-Xmx512m)
                  String name = getLongPrefix(token);
                  if (name != null) {
                      Option option = options.getOption(name);
                      if (!option.isWithEqualSign() && option.acceptsValue()) {
                          handleOption(options.getOption(name));
                          currentOption.addValue(token.substring(name.length()));
                          currentOption = null;
                          return;
                      }
                  }
                  handleUnknownToken(currentToken);
              }
          } else {
              // equal sign found (-xxx=yyy)
              String name = token.substring(0, pos);
              String value = token.substring(pos + 1);
              // -S=V
              Option option = options.getOption(name);
              if (option != null && option.acceptsValue()) {
                  handleOption(option);
                  currentOption.addValue(value);
                  currentOption = null;
              } else {
                  // -L=V or -l=V
                  handleLongOptionWithEqual(token);
              }
          }
      }
docs: Handles the following tokens:
  <pre>
  -S
  -SV
  -S V
  -S=V
  -S1S2
  -S1S2 V
  -SV1=V2
  
  -L
  -LV
  -L V
  -L=V
  -l
  </pre>
  
  @param token the command line token to handle
  @throws OptionParserException if option parsing fails