Displaying 1 to 2 from 2 results

commander - Commander option parser ported to C - simple API, auto-generated --help

  •    C

Commander option parser ported to C. cmd.data is a void * so pass along a struct to the callbacks if you want.

flag - Go-style flag parsing for C

  •    C

Go-style flag parsing for C programs. Much like the Go flag package you have the choice of using a lower level flagset_t, or relying on the less flexible singleton. The following example uses the singleton, which handles the --version and --help output for you, as well as reporting errors.