public static int optionLength(String option){
  if (option.equals("-t"))   return 2;
  if (option.equals("-d"))   return 2;
  if (option.equals("-x"))   return 2;
  return 0;
}

public static int optionLength ( String option ) { if ( option . equals ( "-t" ) ) return 2 ; if ( option . equals ( "-d" ) ) return 2 ; if ( option . equals ( "-x" ) ) return 2 ; return 0 ; }
method called from the javadoc environment to determint the options length . doclet options : - t template location - d outputdir - x true enable debug output .
