@staticmethod<EOL><INDENT>def index_and_value_from_line(line):<DEDENT>
try:<EOL><INDENT>index = int(line.split('<STR_LIT:U+0020>')[<NUM_LIT:0>])<EOL><DEDENT>except (ValueError, IndexError):<EOL><INDENT>print('<STR_LIT>')<EOL>index = None<EOL><DEDENT>try:<EOL><INDENT>value_string = line.split('<STR_LIT:U+0020>')[<NUM_LIT:1>]<EOL><DEDENT>except (ValueError, IndexError):<EOL><INDENT>print('<STR_LIT>')<EOL>value_string = None<EOL><DEDENT>return index, value_string<EOL>
Parse an index (integer) and value (string) from command line args and return them.