commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Keyes <j...@mac.com>
Subject [CLI] char versus String for option name?
Date Thu, 06 Feb 2003 23:25:13 GMT
I have done some more work on the class diagram
( http://www.integralsource.com/cli/datatype2.gif ).  As you can see by
supporting the choice of 'char' and 'String' as the Option name the
design is much more complex.  Wouldn't it be much better to drop
support for 'char'?  This would simplify the design by reducing the
number of classes:
  . No need for Posix/GnuOption just OptionImpl
  . No need for Posix/GnuArgument just ArgumentImpl
  . reduced number of methods on CommandLine (API not finalized)
  . reduced number of methods on the builder (not specified yet but
    should be very similar to the current approach).

Do people think that dropping support for 'char' would cause much
pain for people?  If a migration script is provided that will update
code that uses the char to use String would that make the pain
acceptable?

Cheers,
-John K
- - - - - - - - - - - - - - - - - - - - - - -
Jakarta Commons CLI
http://jakarta.apache.org/commons/cli


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message