Ben Pfaff wrote:
> Another approach would be to provide a function that dynamically
> generates the shortopts
> argument to pass getopt_long(), given the long options. Then there
> would be less work and
> less to keep consistent for developers.

I like this idea, and was thinking in the same direction, because
the missing consistency check between long and short options is only
one of the nine (!) shortcomings of the getopt_long() API.

What do you think about the attached proposed API? Feedback welcome.

Bruno

Attachment: options.tar.gz
Description: application/compressed-tar

Reply via email to