// double-precision floating-point values respectively.
CmdLineParser parser = new CmdLineParser();
Option<Boolean> debug = parser.addBooleanOption('d', "debug");
Option<Boolean> verbose = parser.addBooleanOption('v', "verbose");
Option<Integer> size = parser.addIntegerOption('s', "size");
Option<Double> fraction = parser.addDoubleOption('f', "fraction");
// Options may have just a long form with no corresponding short form.
// Here, we add --alt and --name options.