for every s_opt in parser.option_list. for every x in slice of cwords from the second element to the element at the cword decremented by 1 index,
prev_opts = [ x . split ( '=' ) [ 0 ] for x in cwords [ 1 : cword - 1 ] ]