Package joptsimple

Examples of joptsimple.ArgumentAcceptingOptionSpec


    System.setProperty("java.net.preferIPv4Stack", "true");
    OptionParser var1 = new OptionParser();
    var1.allowsUnrecognizedOptions();
    var1.accepts("demo");
    var1.accepts("fullscreen");
    ArgumentAcceptingOptionSpec var2 = var1.accepts("server").withRequiredArg();
    ArgumentAcceptingOptionSpec var3 = var1.accepts("port").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(25565), new Integer[0]);
    ArgumentAcceptingOptionSpec var4 = var1.accepts("gameDir").withRequiredArg().ofType(File.class).defaultsTo(new File("."), new File[0]);
    ArgumentAcceptingOptionSpec var5 = var1.accepts("assetsDir").withRequiredArg().ofType(File.class);
    ArgumentAcceptingOptionSpec var6 = var1.accepts("resourcePackDir").withRequiredArg().ofType(File.class);
    ArgumentAcceptingOptionSpec var7 = var1.accepts("proxyHost").withRequiredArg();
    ArgumentAcceptingOptionSpec var8 = var1.accepts("proxyPort").withRequiredArg().defaultsTo("8080", new String[0]).ofType(Integer.class);
    ArgumentAcceptingOptionSpec var9 = var1.accepts("proxyUser").withRequiredArg();
    ArgumentAcceptingOptionSpec var10 = var1.accepts("proxyPass").withRequiredArg();
    ArgumentAcceptingOptionSpec var11 = var1.accepts("username").withRequiredArg().defaultsTo("Player" + Minecraft.getSystemTime() % 1000L, new String[0]);
    ArgumentAcceptingOptionSpec var12 = var1.accepts("session").withRequiredArg().defaultsTo("Invalid Session ID", new String[0]);
    ArgumentAcceptingOptionSpec var13 = var1.accepts("version").withRequiredArg().required();
    ArgumentAcceptingOptionSpec var14 = var1.accepts("width").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(854), new Integer[0]);
    ArgumentAcceptingOptionSpec var15 = var1.accepts("height").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(480), new Integer[0]);
    NonOptionArgumentSpec var16 = var1.nonOptions();
    OptionSet var17 = var1.parse(par0ArrayOfStr);
    List var18 = var17.valuesOf(var16);
    String var19 = (String)var17.valueOf(var7);
    Proxy var20 = Proxy.NO_PROXY;
View Full Code Here

TOP

Related Classes of joptsimple.ArgumentAcceptingOptionSpec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.