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
- Host: GitHub
- URL: https://github.com/raggesilver/clapc
- Owner: raggesilver
- License: gpl-3.0
- Created: 2024-06-24T03:05:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T22:56:39.000Z (about 2 years ago)
- Last Synced: 2025-10-29T03:44:56.353Z (8 months ago)
- Topics: argument-parser, c, c23, cli, meson, shared-library
- Language: C
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.