def input_options(self, options, prompt='<STR_LIT>', default=None):
check_options = [x.lower() for x in options]<EOL>while True:<EOL><INDENT>response = input('<STR_LIT>' % (prompt, '<STR_LIT:U+002CU+0020>'.join(options))).lower()<EOL>if response in check_options: return response.strip()<EOL>elif response == '<STR_LIT>' and default is not None:<EOL><INDENT>return default.lower().strip()<EOL><DEDENT><DEDENT>
Helper to prompt the user for input on the commandline.