An open API service indexing awesome lists of open source software.

https://github.com/raggesilver/clapc

A library for parsing command line arguments in C
https://github.com/raggesilver/clapc

argument-parser c c23 cli meson shared-library

Last synced: 5 months ago
JSON representation

A library for parsing command line arguments in C

Awesome Lists containing this project

README

          

# clapc

Clapc is a simple command line argument parser for C. It is designed to be easy
to use and easy to integrate into your project.

The name "clapc" is a portmanteau of "clap" and "C". "clap" is the most popular
command line argument parser for Rust, and clapc is inspired by it.

## Features

> Heads up: the current version of clapc has a major limitation: it does not
> support subcommands. This is a feature that is planned for a future release.

- Support for parsing strings, integers, booleans (stdbool), and floats.
- Easily dislay help messages.

## Planned Features

- Support for grouped short options (e.g. `-abc`).
- Support for default values.
- Support for subcommands.