tubemq-example/src/main/java/org/apache/tubemq/example/ArgsParserHelper.java
/**
     * Init common options when parsing args.
     * @return - options
     */
Init common options when parsing args.
@return - options
Init common options when parsing args . @return - options
public static Options initCommonOptions() {
        Options options = new Options();
        options.addOption(null, "help", false, "show help");
        options.addOption(null, "master-list", true, "master address like: host1:8000,host2:8000");
        options.addOption(null, "topic", true, "topic list, topic1,topic2 or "
                + "topic1:tid11;tid12,topic2:tid21;tid22(consumer only)");
        return options;
    }
public static Options initCommonOptions ( ) { Options options = new Options ( ) ; options . addOption ( null , "help" , false , "show help" ) ; options . addOption ( null , "master-list" , true , "master address like: host1:8000,host2:8000" ) ; options . addOption ( null , "topic" , true , "topic list, topic1,topic2 or " + "topic1:tid11;tid12,topic2:tid21;tid22(consumer only)" ) ; return options ; }
Init common options when parsing args.
Init common options when parsing args .