Gopt

Gopt is small set of C functions for parsing POSIX and GNU style command line arguments.

Gopt has a far more simple interface than any of the library functions typically used to perform this task, such as Argp or getopt.

To see how simple Gopt is, look the sample program, gopt-usage.c.

The documentation is provided as comments in the header file, gopt.h.

Gopt is written in pure C.  Gopt is free standing; it has no dependencies other than the C library.

Features

There is an optional function (in gopt-errors.c) which provides:

Deficiencies

The following limitations are by design:

The optional error handling function provides messages in English only, but if the rest of your application provides translation then it would be easy to incorporate.

Download

Download gopt-10.0.txz, or:

Licence

This is truly free software.