nickchalko    2003/07/26 20:40:04

  Modified:    java     Jenny.java
  Log:
  Handle starting with no options, with an error message.
  PR:
  Obtained from:
  Submitted by: 
  Reviewed by:  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.25      +5 -5      jakarta-gump/java/Jenny.java
  
  Index: Jenny.java
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/java/Jenny.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Jenny.java        23 May 2003 08:16:19 -0000      1.24
  +++ Jenny.java        27 Jul 2003 03:40:04 -0000      1.25
  @@ -412,7 +412,7 @@
               boolean onlineOption = true;
               boolean usageOK = true;
               
  -            if (args.length > 2) {
  +            if (args.length > 2 || args.length==0) {
                   usageOK = false;
               } else if (args.length == 2) {
                   if (args[1].equalsIgnoreCase("-offline")) {
  @@ -420,7 +420,7 @@
                   } else if (!args[1].equalsIgnoreCase("-online")) {
                       usageOK = false;
                   }
  -            }
  +            } 
               
               if (usageOK) {
                   new Jenny(args[0], onlineOption);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to