/clapc

A library for parsing command line arguments in C

Primary LanguageCGNU General Public License v3.0GPL-3.0

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.