Announcing climate.0.4.0

Climate is a declarative command-line parser for OCaml. This release is mostly focused on improving --help messages and allowing the colours of help messages to be configured.

Added

  • Allow help messages colours to be configured (#7)
  • Proof of concept of manpage generation (disabled in release as it’s very incomplete) (#11)

Changed

  • Changed default help message colour scheme to be more colour-blind readable
    and more visible on light and dark terminals (#7)
  • Changed description of --help argument.

Fixes

  • Remove superfluous style reset escape sequences (#7)
  • Don’t apply formatting to trailing spaces in argument names in help messages (#8)
  • Print a readable error when the argument spec is invalid (#10)
9 Likes

I made a (wild) conjecture in the past that perhaps we (the declarative command line enthusiasts of the community) could join forces and come up with a shared abstraction for manpage generation. I still think that’d be awesome, but I am willing to entertain the idea that this is pure fantasy / wishful thinking.

Congrats on the release!

3 Likes

Crazy good, well done @gridbugs

Will use it further and report if there’s anything!

Looks great! Automatic shell completition generation skills is such a nice feature.

It’s things like that enable OCaml to become more popular. Now I can build CLI tools in OCaml and provide users essential utilities.


On a side-note, I tried to imlement a CLI framework in the past (in Haskell) to enforce CLI Guidelines by default. This document contains a lot of nice ideas on how to design CLI UX.

1 Like