I'd like something like the following to work:
public class A {
@command_line_arg{"argname1"}
static boolean x;
@command_line_arg{"argname2"}
static List<String> y;
void main(String[] args) {
/* perhaps a call such as parseArgs(); here */
System.out.println("got argname1 = " + x);
System.out.println("got argname2 = " + y);
}
}
What library do I need to use?
(somewhat related to this.)