Skip to content

zhhe-me/java-cli-menu

Repository files navigation

java-cli-menu

An clean, interactive command line parser/menu for Java CLI.

Idealy, a Java CLI based app can be trigger by java -cp <class> <params>. But sometimes, a menu based configuration is useful and convinient. The interaction looks like:

 Wrong arguments: -g: [Invalid_value] Only 'Csv' is acceptable! 1) -g,--grammar []: Grammar name 2) -,--startRule [token]: Start rule of this parser -- R): refresh menu; X): exit Your input [# value]: 1 Http >! Only 'Csv' is acceptable! Your input [# value]: 1 Csv Your input [# value]: R 1) -g,--grammar [Csv]: Grammar name 2) -,--startRule [token]: Start rule of this parser -- R): refresh menu; X): exit Your input [# value]: x Back to main, let's continue.

Just try to run

with input above.

This project is on the way and changes will happen any time without notification until it gets GA.

Here is flow Java CLI Menu likes to support:

java-cli-menu-flow-0

About

A concise, interactive and versatile command line parser/menu for Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages