Skip to content

Flokkq/cclap

Repository files navigation

Design

cclap tries to somewhat reimplement the popular clap-rs crate as a stb style library for C.

Installation

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"

Examples

Usage examples are located in the examples/ directory. You can also build these examples by following the instructions in the Build Strategy section.

Build Strategy

cclap uses the nob.h header to provide a "native" build system that eliminates the need for third-party systems like CMake or Ninja.

Building the source

$ cc -o nob nob.c
$ ./nob

The build script automatically rebuilds itself if it is modified.

About

the single greatest rust crate ported to C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published