When I run my jar from the cmd in this way:
java -jar myapp.jar -fn='Something'
I get args = [-fn=Something]
. So, the problem is that it misses the quotation marks. The same happens with the double quotation marks.
What can I do to solve this? I couldn't find any solution on the Internet.
P.S. another question would be if I can make my program recognize automatically the -fn variable or I just should parse it like a String. I am using the parsing method, but I just want to know if maybe there are other (more ethical) ways.