I'm working on a framework and I've been using TCLAP to handle command-line options. When the program help is called, I would like to print its parameter usage automatically grouped in categories. An output example would be:
$ ./program help
Learning Options
-t Train mode
-neg Specifies the path for the negative examples
-pos Specifies the path for the positive examples
Detection Options
-d Detection mode
-param Parameters file path
-o Output folder
-track Enables tracking
Feature Extraction Options
-w Window size
-feat Feature type. Available: SIFT and SURF.
I've been looking in the TCLAP's documentation, but didn't find anything. I'm still looking into this StackOverflow post. I've found that libobj seems to do that, but it is not entirely clear.
How can I do that with TCLAP? If it is not possible, is there another library which I can use?
Bonus - A small library, such as TCLAP :-)