Binary package “genparse” in ubuntu precise
command line parser generator
From simple and concise specification file, you can define
the command line parameters and switches that you would like
to be able to pass to your program.
Genparse creates the C code of the parser for you, which you can then
compile as a separate file and link with your program.