cmdliner

Community

Shape clear OCaml CLIs with cmdliner.

Authoraresbit
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Designing robust OCaml CLIs using cmdliner solves the problem of unclear command structures and inconsistent help output.

Core Features & Use Cases

  • Clear subcommand layout and options with well-defined semantics
  • Implementing cmdliner terms and combinators for predictable parsing
  • Integrating CLIs into dune-based OCaml projects for seamless builds
  • Real-world use case: designing a tool with multiple subcommands (build, test, deploy) with consistent help messages

Quick Start

Install OCaml and dune, initialize a new OCaml project, add cmdliner as a dependency, and implement a minimal CLI using Cmd.v and Term.t to observe a clean --help output.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cmdliner
Download link: https://github.com/aresbit/MateBot/archive/main.zip#cmdliner

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.