I am using CLI Apache Commons. By default, he orders help options on the command line alphabetically using the key. So what appears:
-csv -ip -msisdn -xml
But I want to order them as follows:
-csv -xml -ip -msisdn
I know that there is an OptionFormatter class that you can use and pass to HelpFormatter, but you cannot see any examples of how to use it for my purposes above (http://www.marko.homeunix.org/programming/java /commons-cli/api/org/apache/commons/cli/HelpFormatter.OptionComparator.html).
Just wondering, did anyone do something like this?
thanks
source share