I need to write a simple shell-style application in Java. It would be nice to use a library that takes care of parsing commands and takes care of things like flags and optional/mandatory parameters...
Something that has built-in TAB completion would be particularly great.
You can use JLine for editing and Apache Commons CLI for command line parsing.
BeanShell ?
I much prefer either JewelCLI or args4j over Apache Commons CLI.
There is a good, if somewhat inflammatory, roundup of several java CLI options parsers here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With