I need to pass parameters to a java application with a double dash, like this:
java -cp "app.jar" package.App --parameter1=arg1 --parameter2=arg2
What is the easiest way to do this in Java?
Thanks in advance!
-----------UPDATE---------
I'm trying to parse commands in a specific format, with a double dash and equals sign to assign value.
My question is a simple and elegant way to do it with some parser. And I believe this question is still unanswered.