I'm using the Apache Commons CLI. By default it orders help options on the command line alphabetically by key. So, what appears is:
-csv
-ip
-msisdn
-xml
But I want to order them as follows:
-csv
-xml
-ip
-msisdn
I know that there is a OptionFormatter class you can use and pass to the HelpFormatter, but can't see any examples on 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 has anyone done anything similar?
Thanks