I am refactoring a C terminal program with many command line arguments (more than 26). I am re-doing the argument parsing to use the popt protocal.

I was hoping to use its automatic help generator to save some work, but there are a couple problems I haven't found out how to overcome yet.

First, the program is execture with filenames as its last arguments, without flags. These aren't showing up in the 'usage summary' - is there a way to just manually write this generalized line, while keeping the nice formatting of the argument options?

Second, there are several sections of parameters, according to what part of the underlining process is effected. Is there a way to add dividers into the generated help to signify this?

thanks to all who read this,