Class factory and DSL for generating command line programs
