public class Main { public static void main(String[] args) { Getopt opts = new Getopt("MyProgram", args, "hvo:"); int c; while ((c = opts.getopt()) != -1) { switch (c) { case 'h': break; case 'v': break; case 'o': String output = opts.getOptarg(); break; case '?': break; default: break; } } } }


上一篇:
下一篇:
切换中文