Index: tools/gjdoc/javalib/gnu/classpath/tools/gjdoc/Main.java =================================================================== RCS file: /cvs/kaffe/kaffe/tools/gjdoc/javalib/gnu/classpath/tools/gjdoc/Main.java,v retrieving revision 1.1 diff -u -r1.1 Main.java --- tools/gjdoc/javalib/gnu/classpath/tools/gjdoc/Main.java 14 Apr 2004 19:41:12 -0000 1.1 +++ tools/gjdoc/javalib/gnu/classpath/tools/gjdoc/Main.java 16 Apr 2004 14:04:33 -0000 @@ -537,6 +537,9 @@ List customOptions=new LinkedList(); + rootDoc = new RootDocImpl(); + reporter = rootDoc.getReporter(); + //--- Iterate over all options given on the command line for (Iterator it = arguments.iterator(); it.hasNext(); ) { @@ -556,29 +559,33 @@ } //--- Otherwise the option is recognized as a standard option. - // If the option requires more arguments than given on the - // command line, issue a fatal error - - else if (!it.hasNext()) { - reporter.printFatal("Missing value for option "+arg+"."); - } - - //--- The option is recognized as standard option, and all - // required arguments are supplied. Create a new String + // if all required arguments are supplied. Create a new String // array for the option and its arguments, and store it // in the options array. - // FIXME: this does not deal well with omitted arguments - // like such '-sourcepath -private': this would lead - // to '-private' being silently accepted as an argument - // to '-sourcepath'. - else { String[] option=new String[optlen]; option[0] = arg; - for (int j=1; j