import com.github.scopt.*; public class MyApp { public static class Config { public String filePath; public int number = 0; } public static void main(String[] args) { ScoptParser<Config> parser = new ScoptParser.Builder<Config>("myapp") .programName("MyApp") .version("1.0") .build(); parser.parse(args, new Config()) .ifPresent(config -> { }); } }


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