cclap tries to somewhat reimplement the popular clap-rs crate as a stb style library for C.
Warning
🔴 IMPORTANT: cclap
is still in early development and not stable. Use at your own risk.
As mentioned above cclap
is a stb style library. All you need to do is download cclap.h and import it.
#define CCLAP_IMPLEMENTATION // include the implementation code for cclap
#include "cclap.h"
Usage examples are located in the examples/
directory. You can also build these examples by following the instructions in the Build Strategy section.
cclap uses the nob.h
header to provide a "native" build system that eliminates the need for third-party systems like CMake or Ninja.
$ cc -o nob nob.c
$ ./nob
The build script automatically rebuilds itself if it is modified.