Thanks everyone for getting the nightly build going
for cli.  Talk about responsive!

I'm trying the package out right now, very nice 
(though it requires a bit of play to figure out
how to do things).

I ran into a bug when trying to use the HelpFormatter
which excercises Option.hasArgName. Here's my patch
for it.

/org/apache/commons/cli/Option.java
***************
*** 395,401 ****
        * set.
        */
       public boolean hasArgName() {
!          return (this.argName != null || this.argName.length() > 0 );
       }

       /**
--- 395,407 ----
        * set.
        */
       public boolean hasArgName() {
!          if (argName == null) {
!              return false;
!          }
!          else {
!              return argName.length() > 0;
!          }
!          //return (this.argName != null || this.argName.length() > 0 );
       }

       /**

Reply via email to