Package com.alibaba.antx.util.cli

Examples of com.alibaba.antx.util.cli.OptionBuilder.withLongOpt()


                                 .withDescription("排除哪些打包文件,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_EXCLUDE_PACKAGES));

        options.addOption(builder.withLongOpt("interactive").hasOptionalArg()
                                 .withDescription("交互模式:auto|on|off,默认为auto,无参数表示on").create(OPT_INTERACTIVE_MODE));

        options.addOption(builder.withLongOpt("non-interactive").withDescription("非交互模式,相当于--interactive=off")
                                 .create(OPT_NON_INTERACTIVE_MODE));

        options.addOption(builder.withLongOpt("gui").withDescription("图形用户界面(交互模式)").create(OPT_GUI_MODE));

        options.addOption(builder.withLongOpt("text").withDescription("文本用户界面(交互模式)").create(OPT_TEXT_MODE));
View Full Code Here


                                 .withDescription("交互模式:auto|on|off,默认为auto,无参数表示on").create(OPT_INTERACTIVE_MODE));

        options.addOption(builder.withLongOpt("non-interactive").withDescription("非交互模式,相当于--interactive=off")
                                 .create(OPT_NON_INTERACTIVE_MODE));

        options.addOption(builder.withLongOpt("gui").withDescription("图形用户界面(交互模式)").create(OPT_GUI_MODE));

        options.addOption(builder.withLongOpt("text").withDescription("文本用户界面(交互模式)").create(OPT_TEXT_MODE));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));
View Full Code Here

        options.addOption(builder.withLongOpt("non-interactive").withDescription("非交互模式,相当于--interactive=off")
                                 .create(OPT_NON_INTERACTIVE_MODE));

        options.addOption(builder.withLongOpt("gui").withDescription("图形用户界面(交互模式)").create(OPT_GUI_MODE));

        options.addOption(builder.withLongOpt("text").withDescription("文本用户界面(交互模式)").create(OPT_TEXT_MODE));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));
View Full Code Here

        options.addOption(builder.withLongOpt("gui").withDescription("图形用户界面(交互模式)").create(OPT_GUI_MODE));

        options.addOption(builder.withLongOpt("text").withDescription("文本用户界面(交互模式)").create(OPT_TEXT_MODE));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("userprop").hasArg().withDescription("用户属性文件")
                                 .create(OPT_USER_PROPERTIES));
View Full Code Here

        options.addOption(builder.withLongOpt("text").withDescription("文本用户界面(交互模式)").create(OPT_TEXT_MODE));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("userprop").hasArg().withDescription("用户属性文件")
                                 .create(OPT_USER_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props").hasArg().withDescription("共享的属性文件URL列表,以逗号分隔")
View Full Code Here

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("userprop").hasArg().withDescription("用户属性文件")
                                 .create(OPT_USER_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props").hasArg().withDescription("共享的属性文件URL列表,以逗号分隔")
                                 .create(OPT_SHARED_PROPERTIES));
View Full Code Here

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("userprop").hasArg().withDescription("用户属性文件")
                                 .create(OPT_USER_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props").hasArg().withDescription("共享的属性文件URL列表,以逗号分隔")
                                 .create(OPT_SHARED_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props-name").hasArg().withDescription("共享的属性文件的名称")
                                 .create(OPT_SHARED_PROPERTIES_NAME));
View Full Code Here

                                 .create(OPT_USER_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props").hasArg().withDescription("共享的属性文件URL列表,以逗号分隔")
                                 .create(OPT_SHARED_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props-name").hasArg().withDescription("共享的属性文件的名称")
                                 .create(OPT_SHARED_PROPERTIES_NAME));

        options.addOption(builder.withLongOpt("output").hasArg().withDescription("输出文件名或目录名").create(OPT_OUTPUT_FILES));

        options.addOption(builder.withLongOpt("type").hasArg().withDescription("文件类型,例如:war, jar, ear等")
View Full Code Here

                                 .create(OPT_SHARED_PROPERTIES));

        options.addOption(builder.withLongOpt("shared-props-name").hasArg().withDescription("共享的属性文件的名称")
                                 .create(OPT_SHARED_PROPERTIES_NAME));

        options.addOption(builder.withLongOpt("output").hasArg().withDescription("输出文件名或目录名").create(OPT_OUTPUT_FILES));

        options.addOption(builder.withLongOpt("type").hasArg().withDescription("文件类型,例如:war, jar, ear等")
                                 .create(OPT_TYPE));
    }
View Full Code Here

        options.addOption(builder.withLongOpt("shared-props-name").hasArg().withDescription("共享的属性文件的名称")
                                 .create(OPT_SHARED_PROPERTIES_NAME));

        options.addOption(builder.withLongOpt("output").hasArg().withDescription("输出文件名或目录名").create(OPT_OUTPUT_FILES));

        options.addOption(builder.withLongOpt("type").hasArg().withDescription("文件类型,例如:war, jar, ear等")
                                 .create(OPT_TYPE));
    }

    public CommandLine parse(String[] args) {
        CommandLine cli;
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.