package com.alibaba.rocketmq.example.verify;

import com.alibaba.rocketmq.common.UtilAll;
import org.apache.commons.cli.*;

public class SelectPartition {
    public static void main(String[] args) throws ParseException {
        Options options = new Options();

        Option option = new Option("p", "path", true, "Paths in CSV");
        options.addOption(option);

        CommandLineParser parser = new DefaultParser();
        CommandLine commandLine = parser.parse(options, args);
        if (!commandLine.hasOption('p')) {
            HelpFormatter helpFormatter = new HelpFormatter();
            helpFormatter.printHelp("Select Partition", options);
            return;
        }

        String pathCSV = commandLine.getOptionValue("p");
        String selectedPath = UtilAll.selectPath(pathCSV);
        System.out.println(selectedPath);
    }
}

@@ -755,30 +755,8 @@
     
- String selectedPath =
  Uti
@@ -781,24 +781,25 @@
 thCSV);%0A
+%0A
         
 System.o
@@ -794,39 +794,56 @@
     
-System.out.println(selectedPath
+UtilAll.getDiskPartitionSpaceUsedPercent(pathCSV
 );%0A 

Add test to show disk usage ratio per partition.