A multi-language argument-parsing library.
C Java Go Python C++ Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
c
cpp
docs
go
java
python
.gitignore
license.txt
readme.md

readme.md

Clio

Clio is an argument-parsing library designed for building elegant command-line interfaces. Argument-parsing libraries tend to be fiddly, complicated, and ugly. Clio aims for simplicity and for consistency across a range of programming languages.

Clio is implemented in:

All implementations support the same core feature set:

  • Long-form boolean flags with single-character shortcuts: --flag, -f.

  • Long-form string, integer, and floating-point options with single-character shortcuts: --option <arg>, -o <arg>.

  • Condensed short-form options: -abc <arg> <arg>.

  • Automatic --help and --version flags.

  • Support for list options with multiple values.

  • Support for git-style command interfaces with arbitrarily-nested commands.

See the documentation for details.