I'm trying to make a parser for a Java Program's command line arguments, as not to re-invent the wheel I tried looking for a generator that would generate something like that for me, I found people suggesting CLI and JSAP, they seem like great tools but they create objects in run-time, I need my parsing to be static as to not clutter the code with unncessary capabilities (and memory), so what I'm really looking for is a command line parser generator, in that thread I found XTC, Rats, and JavaCC, but they seem like a lot of work and I think that what I need is simpler.
In The end I decided to make my parser using JavaCC, this question is just to make sure that there is no one out there that knows a simpler way...
Thanks
Edit: the JavaCC thread is a dud since it works on character by character, not really suitable for command line parsing