Apache Commons CLI Tutorial

Time needed: 30 minutes In this tutorial I'll show how to use an Apache Commons CLI library in order to create a console application that accepts various user-provided options, validates them, and prints a help message if something goes wrong. We'll create a simple tool, called cli-random, that will generate pseudo-random numbers based solely on...