Skip to main content

One post tagged with "cmdliner"

cmdliner

View All Tags

Yet Another CLI Library (well, not really)

· 4 min read
Mathieu Barbin
Author & Maintainer of cmdlang

https://discuss.ocaml.org/t/cmdlang-yet-another-cli-library-well-not-really/15258

Greetings fellow camlers,

I hope you had a nice summer! Mine took an unexpected turn when, roughly at the same time, I wrote my first cmdliner subcommand and heard about climate for the first time. My experience with OCaml CLI so far had been centered around core.command.

When I read climate's terminology section and how it defines Terms, Arguments, and Parameters, something clicked. Seeing how climate's API managed to make positional and named arguments fit so nicely together, I thought: "Wow, for the first time, it seems I'll be able to write a CLI spec on a whiteboard without referring to some code I never seem to get right (I am looking at you, core.command's anonymous arguments)."