Argtable3 is an open source ANSI C library that parses GNU-style
command-line options with the getopt
library. It simplifies command-line
parsing by defining a declarative-style API that you can use to specify what
your command-line syntax looks like. Argtable3 will automatically generate
consistent error handling logic and textual descriptions of the command line
syntax, which are essential but tedious to implement for a robust CLI program.
You can embed the amalgamation source files in your projects, add Argtable3 as a dependency in the vcpkg manifest, install Argtable3 as a system-wide CMake package, or build the library from release archives.
We no longer provide the amalgamation source files (
argtable3.c
andargtable3.h
) in the repository. You can get the amalgamation distribution either from the