This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A fix for command-line-arguments


Per,

Testing out the answer for the question about the command line 
arguments revealed a small bug.  When using "-w", that argument 
is left in the command-line-argument value.  

Here's the patch:

cvs diff -u repl.java 
Index: repl.java
===================================================================
RCS file: /cvs/kawa/kawa/kawa/repl.java,v
retrieving revision 1.40
diff -u -r1.40 repl.java
--- repl.java   2001/10/11 22:04:36     1.40
+++ repl.java   2001/11/29 18:58:19
@@ -186,6 +186,7 @@
              }
            else if (arg.equals ("-w"))
              {
+               iArg++;
                getInterpreter();
                setArgs (args, iArg);
                checkInitFile();


jim

----------------------------------------------------------------
James P. White                 Netscape DevEdge Champion for IFC 
IFC Exchange   *   Insanely great Java   *   http://www.ifcx.org
jim@pagesmiths.com Pagesmiths' home is http://www.pagesmiths.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]