What problem does it solve?
This Skill streamlines the creation of robust command-line interfaces for Clojure scripts, eliminating repetitive manual argument parsing, type conversion, and error handling.
Core Features & Use Cases
- Automatic Argument Parsing: Convert command-line arguments into structured Clojure data maps with automatic type coercion.
- Subcommand Dispatch: Easily define and route to different functions based on subcommands, creating organized and intuitive CLI tools.
- Built-in Validation & Help: Enforce required options, validate values, and automatically generate user-friendly help text for your users.
- Use Case: Transform a collection of utility functions into a single, professional CLI tool where users can run
my-tool build --target :jar or my-tool deploy production --force, complete with type-checked options and clear help messages.
Quick Start
Use the babashka.cli skill to parse the command-line arguments "--port 8080 --verbose true", coercing 'port' to a long and 'verbose' to a boolean.