code: public static int optionLength(String optionName) {
  		Option option = options.getOption(optionName);
  		if (option == null) {
  			return 0;
  		}
  		return option.getArgs() + 1;
  	}
docs: Check for doclet-added options. Returns the number of arguments you must
  specify on the command line for the given option. For example, "-d docs"
  would return 2.
  <P>
  This method is required if the doclet contains any options. If this
  method is missing, Javadoc will print an invalid flag error for every
  option.
  
  @see com.sun.javadoc.Doclet#optionLength(String)
  
  @param optionName
  The name of the option.
  @return number of arguments on the command line for an option including
  the option name itself. Zero return means option not known.
  Negative value means error occurred.