|
-
Command line parameter checking?
Hi,
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
program.
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
were correct.
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
efficient ways...
Thanks for any advice
Volker
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks