Add a class to ease the detection of command-line options.