gengetopt

Generate C code to parse command-line arguments via getopt_long

brewmacoslinux
Try with needOr install directly
Source

About

Generate C code to parse command-line arguments via getopt_long

Commands

gengetopt

Examples

Generate C parser code from a command-line options definition file$ gengetopt < options.ggo
Generate parser with custom output file prefix$ gengetopt --input=myopts.ggo --file-name=cmd_parser
Generate parser and display help information about gengetopt$ gengetopt --help