Projects / argtable

argtable

Argtable is an ANSI C library for parsing GNU style command line arguments, as in "foo -abc -o myfile --help --count=7". It enables a program's command line syntax to be defined in the source code as an array of argtable structs. The command line is then parsed according to that specification, and the resulting values are returned in those same structs where they are accessible to the main program. The default parsing, validation, and error reporting routines may be replaced by user-defined callbacks if desired, and new argtable data types may be created to parse user-defined argument types. The parsing itself is done using GNU getopt and so is 100% GNU compatible.

Tags
Licenses

Recent releases

  •  26 Mar 2008 06:24

    Release Notes: This version fixes a minor makefile bug relating to the "make dist" command. There are no changes to the code base.

    •  01 Jan 2008 09:58

      Release Notes: This release adds some additional foolproofing in the arg_xxx() constructor functions and includes some very minor code tweaks.

      •  22 Jul 2007 16:24

        Release Notes: This release adds some additional foolproofing in the arg_xxxn() constructor functions. It also fixes a bug in arg_parsearg() that is specific to TI DSP platforms, and a bug in the arg_dbl() constructor that is specific to Solaris platforms.

        •  12 Feb 2006 09:01

          Release Notes: This release reinstates the Windows makefiles that were accidentally omitted from the previous release. There are no changes to the code base.

          •  23 Dec 2005 08:46

            Release Notes: This release includes new functionality for parsing command line options having optional values (--foo=[bar]). Stricter GNU-style formatting of the on-line help is done. It also includes bugfixes and additional documentation and example code. By far, the greatest change has been porting all of the makefiles over to automake. It is expected this will make the argtable source package even more portable than before.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.