A Java command line parsing framework in a single file, so you can include it in source form. This lets users run picocli-based applications without requiring picocli as an external dependency.

How it works: annotate your class and picocli initializes it from the command line arguments, converting the input to strongly typed data. Supports subcommands, any option prefix style, POSIX-style grouped short options, custom type converters and more.

Distinguishes between named options and positional parameters and allows both to be strongly typed. Multi-valued fields can specify an exact number of parameters or a range (e.g., 0..*, 1..2).

Generates polished and easily tailored usage help, using ANSI colors where possible. Works with Java 5 or higher (but is designed to facilitate the use of Java 8 lambdas).

Programming language: Java

picocli alternatives and related libraries

Based on the "Command-line Argument Parsers" category

Do you think we are missing an alternative of picocli or a related project?

Add another 'Command-line Argument Parsers' Library

picocli Recommendations

There are no recommendations yet. Be the first to promote picocli!

Have you used picocli? Share your experience. Write a short recommendation and picocli, you and your project will be promoted on Awesome Java.
Recommend picocli

Recently added picocli resources