Long Option Parser for Subcommands
Lopsub is an open source library written in C which aims to ease
the task of creating, documenting and parsing the options of Unix
command line utilities. It is suitable for simple commands as well
as complex command line utilities with many subcommands where each
subcommand has its own set of options. Options and documentation are
kept together in a single file which can be translated to C code (to
be included in the application), or to a manual page. The library
supports single-character short options and GNU-style long options.
The public API is well documented and stable.