Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OptionParser optionparser = new OptionParser();
- optionparser.allowsUnrecognizedOptions();
- optionparser.accepts("demo");
- optionparser.accepts("fullscreen");
- optionparser.accepts("checkGlErrors");
- OptionSpec<String> optionspec = optionparser.accepts("server").withRequiredArg();
- OptionSpec<Integer> optionspec1 = optionparser.accepts("port").withRequiredArg().<Integer>ofType(Integer.class).defaultsTo(Integer.valueOf(25565));
- OptionSpec<File> optionspec2 = optionparser.accepts("gameDir").withRequiredArg().<File>ofType(File.class).defaultsTo(new File("."));
- OptionSpec<File> optionspec3 = optionparser.accepts("assetsDir").withRequiredArg().<File>ofType(File.class);
- OptionSpec<File> optionspec4 = optionparser.accepts("resourcePackDir").withRequiredArg().<File>ofType(File.class);
- OptionSpec<String> optionspec5 = optionparser.accepts("proxyHost").withRequiredArg();
- OptionSpec<Integer> optionspec6 = optionparser.accepts("proxyPort").withRequiredArg().defaultsTo("8080").<Integer>ofType(Integer.class);
- OptionSpec<String> optionspec7 = optionparser.accepts("proxyUser").withRequiredArg();
- OptionSpec<String> optionspec8 = optionparser.accepts("proxyPass").withRequiredArg();
- OptionSpec<String> optionspec9 = optionparser.accepts("username").withRequiredArg().defaultsTo("Player" + Minecraft.getSystemTime() % 1000L);
- OptionSpec<String> optionspec10 = optionparser.accepts("uuid").withRequiredArg();
- OptionSpec<String> optionspec11 = optionparser.accepts("accessToken").withRequiredArg().required();
- OptionSpec<String> optionspec12 = optionparser.accepts("version").withRequiredArg().required();
- OptionSpec<Integer> optionspec13 = optionparser.accepts("width").withRequiredArg().<Integer>ofType(Integer.class).defaultsTo(Integer.valueOf(854));
- OptionSpec<Integer> optionspec14 = optionparser.accepts("height").withRequiredArg().<Integer>ofType(Integer.class).defaultsTo(Integer.valueOf(480));
- OptionSpec<String> optionspec15 = optionparser.accepts("userProperties").withRequiredArg().defaultsTo("{}");
- OptionSpec<String> optionspec16 = optionparser.accepts("profileProperties").withRequiredArg().defaultsTo("{}");
- OptionSpec<String> optionspec17 = optionparser.accepts("assetIndex").withRequiredArg();
- OptionSpec<String> optionspec18 = optionparser.accepts("userType").withRequiredArg().defaultsTo("legacy");
- OptionSpec<String> optionspec19 = optionparser.accepts("versionType").withRequiredArg().defaultsTo("release");
- OptionSpec<String> optionspec20 = optionparser.nonOptions();
- OptionSet optionset = optionparser.parse(p_main_0_);
- List<String> list = optionset.valuesOf(optionspec20);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement