Skip to content

Alternatives, inspirations and comparisons

Clip is not the only library you can use to parse CLI parameters. Here are some alternatives and inspirations.

Typer

Typer is a library for building CLI applications that users will love using and developers will love creating.

Typer is actually an awesome Python library. It inspired a lot Clip, whether for the idea of using type restrictions, the general behavior of the lib (what to consider an option or an argument, the help message), or even this documentation.

OptionParser

OptionParser is a class for command-line options processing.

It works by using a specific DSL to execute blocks of code on command, options and arguments during the parsing.

Admiral.cr

A robust DSL for writing command line interfaces

Admiral provides an easy way to define commands using inheritance and a DSL.

Commander

Command-line interface builder for the Crystal programming language.

Commander provides a DSL to declare and use options, arguments, and commands.

Clicr

A simple declarative command line interface builder.

Unlike to others presented libraries (and Clip), Clicr is declarative: you call the library with a NamedTuple describing exactly what options, arguments and command you want.