Clio is a minimalist argument-parsing library designed for building elegant command-line interfaces.
Clio supports long and short-form options and arbitrarily-nested commands. It aims to provide a consistent interface across multiple programming languages, implemented wherever possible as a simple drop-in file.
Clio is currently implemented in C, Go, Java, and Python.
All implementations support the same core feature set:
Long-form boolean flags with single-character shortcuts:
Long-form string, integer, and floating-point options with single-character shortcuts:
Condensed short-form options:
-abc <arg> <arg>.
Support for list options with multiple values.
Support for git-style command interfaces with arbitrarily-nested commands.
This work has been placed in the public domain.