我想要类似以下的工作:
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);
}
}
我需要使用什么库?
(有点相关这个。)