Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. OptionParser optionparser = new OptionParser();
  2. optionparser.allowsUnrecognizedOptions();
  3. optionparser.accepts("demo");
  4. optionparser.accepts("fullscreen");
  5. optionparser.accepts("checkGlErrors");
  6. OptionSpec<String> optionspec = optionparser.accepts("server").withRequiredArg();
  7. OptionSpec<Integer> optionspec1 = optionparser.accepts("port").withRequiredArg().<Integer>ofType(Integer.class).defaultsTo(Integer.valueOf(25565));
  8. OptionSpec<File> optionspec2 = optionparser.accepts("gameDir").withRequiredArg().<File>ofType(File.class).defaultsTo(new File("."));
  9. OptionSpec<File> optionspec3 = optionparser.accepts("assetsDir").withRequiredArg().<File>ofType(File.class);
  10. OptionSpec<File> optionspec4 = optionparser.accepts("resourcePackDir").withRequiredArg().<File>ofType(File.class);
  11. OptionSpec<String> optionspec5 = optionparser.accepts("proxyHost").withRequiredArg();
  12. OptionSpec<Integer> optionspec6 = optionparser.accepts("proxyPort").withRequiredArg().defaultsTo("8080").<Integer>ofType(Integer.class);
  13. OptionSpec<String> optionspec7 = optionparser.accepts("proxyUser").withRequiredArg();
  14. OptionSpec<String> optionspec8 = optionparser.accepts("proxyPass").withRequiredArg();
  15. OptionSpec<String> optionspec9 = optionparser.accepts("username").withRequiredArg().defaultsTo("Player" + Minecraft.getSystemTime() % 1000L);
  16. OptionSpec<String> optionspec10 = optionparser.accepts("uuid").withRequiredArg();
  17. OptionSpec<String> optionspec11 = optionparser.accepts("accessToken").withRequiredArg().required();
  18. OptionSpec<String> optionspec12 = optionparser.accepts("version").withRequiredArg().required();
  19. OptionSpec<Integer> optionspec13 = optionparser.accepts("width").withRequiredArg().<Integer>ofType(Integer.class).defaultsTo(Integer.valueOf(854));
  20. OptionSpec<Integer> optionspec14 = optionparser.accepts("height").withRequiredArg().<Integer>ofType(Integer.class).defaultsTo(Integer.valueOf(480));
  21. OptionSpec<String> optionspec15 = optionparser.accepts("userProperties").withRequiredArg().defaultsTo("{}");
  22. OptionSpec<String> optionspec16 = optionparser.accepts("profileProperties").withRequiredArg().defaultsTo("{}");
  23. OptionSpec<String> optionspec17 = optionparser.accepts("assetIndex").withRequiredArg();
  24. OptionSpec<String> optionspec18 = optionparser.accepts("userType").withRequiredArg().defaultsTo("legacy");
  25. OptionSpec<String> optionspec19 = optionparser.accepts("versionType").withRequiredArg().defaultsTo("release");
  26. OptionSpec<String> optionspec20 = optionparser.nonOptions();
  27. OptionSet optionset = optionparser.parse(p_main_0_);
  28. List<String> list = optionset.valuesOf(optionspec20);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement