private CommandLine getCommandLine(String[] args) {
        Option itemOpt = new Option("item", true, "stats item");
        itemOpt.setRequired(false);
        Option configOpt = new Option("config", true, "start partition num");
        configOpt.setRequired(true);
        return CommandLineUtils.parseCmdLine(args, new Options().addOption(itemOpt).addOption(configOpt));
    }
Usage: stats -config configFilePath -item item

@author apple
metamorphosis-tools/src/main/java/com/taobao/metamorphosis/tools/shell/BrokerStatsTool.java