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).
picocli alternatives and related libraries
Based on the "Command-line Argument Parsers" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of picocli or a related project?
picocli RecommendationsThere 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.
Recently added picocli resources
2. Options and Parameters
3. Strongly Typed Everything
4. Multiple Values
5. Required ArgumentsTutorial Added by remkop // picocli.info // over 1 year ago