qbicsoftware / statistics-cli

This tools is responsible for data retrieval and formatting, in order to visualize data on our homepage.
MIT License
1 stars 0 forks source link

Deciding on a commandline parser library #1

Closed Zethson closed 6 years ago

Zethson commented 6 years ago

Hi,

I saw that @FriederikeHanssen is using/setup commons CLI. I wanted to start a small discussion about which library to use for commandline parsing. There are to my mind two good alternatives: JCommander offers annotations for creating commandline options. I used the library for the Voronoi Treemaps CLI and it was quite a charm to use. The documentation appeared to be pretty readable and sufficient. Latest release: 15.07.2017 Picocli offers annotations as well. Furthermore options can be ANSI colored and it even offers code completion. It appears to be the most powerful of them. Documentation seems to be just as good as JCommander's. The code itself might get a little bit more complex as JCommanders, however this is just my impression. Latest release: 21.03.2018

Commons CLI is more or less not longer in development. There are still developers on JCommander and Picocli seems to be under heavy development for even more features. Latest release of Commons CLI: 17.06.2015

This discussion might serve for a qbic standard on commandline parsing in Java? @sven1103

Edit: I don't seem to be able to label issues here yet, because I'm not a contributor yet.

Zethson commented 6 years ago

We have decided to use picocli in an internal discussion.