Skip to content

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.

License

Notifications You must be signed in to change notification settings

HEYAHONG/argtable3

 
 

Repository files navigation

Build Status License

Introduction of Argtable3

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.

Quick Start

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.

Embed Amalgamation Source Files

We no longer provide the amalgamation source files (argtable3.c and argtable3.h) in the repository. You can get the amalgamation distribution either from the