Instead of adding fields individually to the Command, just store a GeneratorSettings, and getopt it as needed.