FICHA · AUR

cargs

A lightweight cross-platform getopt alternative that works on Linux, Windows and macOS. Command line argument parser library for C/C++. Can be used to parse argv and argc parameters.

  • Library
  • API
  • Dependency only
official+codex · reviewed · May 30, 2026 description in en

Description

C and C++ programs can parse command-line arguments with a lightweight getopt alternative that works across Linux, Windows, and macOS. It is useful for developers who want consistent argument handling in portable command-line tools.

This is a development library, not a user-facing command. Applications using it still need clear help text, validation, and tests for invalid or unexpected arguments.

Permissions

Permissions not analysed for this source yet.