only consider processed options in generate_cmd_line

@stdweird: bug fix on top of #131