I would also recommend looking at JOpt Simple.
<a href="https:&#x2F;&#x2F;pholser.github.io&#x2F;jopt-simple&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pholser.github.io&#x2F;jopt-simple&#x2F;</a><p>JOpt Simple tries to not only to be simple in use but also in code by restricting the commandline syntax to the command line option syntaxes of POSIX getopt() and GNU getopt_long().<p>I like that much better than the support-them-all attitude of Commons CLI.<p>Whoever thought that having Git-style command line options is a good idea should have their programming license revoked (although the <i>syntax</i> of Git&#x27;s command line options is the least problem I have with them).