Implement proper command line interface for generation.