Good evening,
I am creating a Java 1.8 program that runs on command line. The idea is to be able to distinguish between a function and the parameter of the function, for example:
cdbprincipal -u juan -p 1234 co -d client -x -t
In this example cdbprincipal is the main program -u, -p, -d, -x -t are methods that must be executed; and juan, 1234, co and client are the parameters for each method called; -x and -t have no arguments; -p has 2 arguments.
The question is, how can I identify the arguments with minus sign (-u) and identify the parameters
Thanks for your help