commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Essa <ae...@fuse.net>
Subject [CLI] How to do type checking?
Date Thu, 12 Jun 2003 19:35:09 GMT
Hello:

I have a question about type checking for arguments in CLI. Is it possible to specify that
all argument values for a certain option must be numeric and if not ParseException should
be thrown while parsing? I see that there is a method "withType" in OptionBuilder but the
parameter type of the method is Object - if it supports type checking it should have been
"class". The JavaDoc does not give more information on this method. Any help will be highly
appreciated.

Thanks
Bob


Mime
View raw message