options, args = parser.parse_args(['--k', '4', '--batman-and-robin'])
assert args[0] == '--batman-and-robin'
assert options.known_arg == 4
How can I get optparse's OptionParser to ignore invalid options?