commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <>
Subject [CLI 1.x] Minor CLI issues
Date Wed, 01 Aug 2007 15:43:37 GMT

I am using commons-cli in a distributed application (ah, you would not
consider the fun you can have with JMX) and I found a number of minor
issues with it:

- project.xml version still points to 1.1

- need Option, OptionGroup, Options, CommandLine serializable (they
  are already, except that they do not implement Serializable. For
  Option and Option, Serializing also assumes that the type
  arguments are serializable (but that is obvious... :-) )

- Option contains a "hasArg" member variable that obviously is an
  artefact and no longer used. Except in the toString() method where
  it leads to wrong display whether an argument is required or
  not. Mainly cosmetical, but when you use that for displaying help,
  it is bad.

- Parser is not really extensible; a number of methods should be protected,
  not private, the members should be accessible for subclasses. 

I have patches for all this (mainly my patched code base), would
anyone object to me applying this to the 1.x branch?

       Best regards

Henning P. Schmiedehausen  -- | J2EE, Linux,               |gls
91054 Buckenhof, Germany   -- +49 9131 506540  | Apache person              |eau
Open Source Consulting, Development, Design    | Velocity - Turbine guy     |rwc
                                                                            |m k
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH - RG Fuerth, HRB 7350     |a s
Sitz der Gesellschaft: Buckenhof. Geschaeftsfuehrer: Henning Schmiedehausen |n

	       "Save the cheerleader. Save the world."

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message