Generating a command-line interface