Examples of OptionSpec


Examples of joptsimple.OptionSpec

    public static void main(String[] args) throws Exception {
        OptionParser parser = new OptionParser();
        OptionSpec<Integer> clusterId = parser.accepts("clusterId", "MongoMK clusterId")
                .withRequiredArg().ofType(Integer.class).defaultsTo(0);
        OptionSpec quiet = parser.accepts("quiet", "be less chatty");
        OptionSpec shell = parser.accepts("shell", "run the shell after executing files");
        OptionSpec help = parser.acceptsAll(asList("h", "?", "help"), "show help").forHelp();
        OptionSpec<String> nonOption = parser.nonOptions("console {<path-to-repository> | <mongodb-uri>}");

        OptionSet options = parser.parse(args);
        List<String> nonOptions = nonOption.values(options);
View Full Code Here

Examples of org.apache.flex.compiler.ant.config.OptionSpec

    public Fonts(FlexTask task)
    {
        attribs = new ConfigVariable[]
        {
            new ConfigBoolean(new OptionSpec("compiler.fonts.flash-type")),
            new ConfigBoolean(new OptionSpec("compiler.fonts.advanced-anti-aliasing")),
            new ConfigString(new OptionSpec("compiler.fonts.local-fonts-snapshot")),
            new ConfigString(new OptionSpec("compiler.fonts.max-cached-fonts")),
            new ConfigString(new OptionSpec("compiler.fonts.max-glyphs-per-face"))
        };

        nestedAttribs = new ArrayList<NestedAttributeElement>();
        this.task = task;
    }
View Full Code Here

Examples of org.apache.flex.compiler.ant.config.OptionSpec

        this(null);
    }

    public Metadata(FlexTask task)
    {
        date = new ConfigString(new OptionSpec("metadata", "date"));
        description = new ConfigString(new OptionSpec("metadata", "description"));
        title = new ConfigString(new OptionSpec("metadata", "title"));

        nestedAttribs = new ArrayList<NestedAttributeElement>();
        this.task = task;
    }
View Full Code Here

Examples of org.apache.flex.compiler.ant.config.OptionSpec

              TOOL_CLASS_NAME, TOOL_METHOD_NAME, TOOL_FAILURE_METHOD_NAME);

        nestedAttribs = new ArrayList<IOptionSource>();
        nestedFileSets = new ArrayList<IOptionSource>();

        output = new ConfigString(new OptionSpec("output", "o"));
        includeClasses = new RepeatableConfigString(new OptionSpec("include-classes", "ic"));
    }
View Full Code Here

Examples of org.apache.flex.compiler.ant.config.OptionSpec

        while (it.hasNext())
            ((IOptionSource)it.next()).addToCommandline(cmdline);
       
        if (output != null)
            (new ConfigString(new OptionSpec("output", "o"), output)).addToCommandline(cmdline);
       
        // end of arguments
        cmdline.createArgument().setValue("--");

        // file-DEFAULT_SCRIPT_LIMITS may not be specified if building, e.g. a resource bundle SWF
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.