Modified getopt.h to support hierarchies of command options.