Command line parameter checking?
does anybody has a "good" example for
command line parameter checking?
I write a lot of command line tools for
java, recently they have become more
complex and it´s required to check a
number of command line switches in order
to provide successfull execution of the
Now the checking in general is no
problem, but i´m uneasy about which
design approach to use...
Until now i usually used an launcher
class that passes the command line args
to a "validating" module ( class ) that
also sets the class fields if the args
I used to set the class fields in the
constructor of the "validating" class
and a lot more... that is i do a lot of
preparation/work in the constructor...
now i ask myself is that really a good
way to go or are there better/more
Thanks for any advice
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center