implementing Option handling : command line exception
Posted on 2004-09-06
I want to create a program that gets arguments from command line, and I would like to check for exceptions.
public static void main( args )
All arguments must be int , or all must be between 'a' to 'z'.
The number of arguments must be 5, and 5th argument must be bigger than 4th, and so on.....
is there any ready made option handling class i can use?
I would appreciate if some one can show me some example code.