Babashka CLI: turn your Clojure functions into CLIs!

Babashka CLI: GitHub - babashka/cli: Turn Clojure functions into CLIs!

This library offers easy command line parsing for Clojure and babashka. Its intended use is in babashka tasks/scripts and to alleviate shell-quoting with the Clojure CLI.

Options

Subcommands

Usage in babashka tasks

Usage with the clojure CLI

The library has no dependencies and should cover most common arg parsing needs, but of course there are many great and more fully featured alternatives, when you need those.

6 Likes

Nice, I also like how that means you don’t need to think if you have to use -T or -X or -M, it seems you’d always be able to use -M for everything.

1 Like