parser.add_option('-k', '--known-arg', dest='known_arg', nargs=1, type='int')
options, args = parser.parse_args(['--shazbot', '--known-arg=1'])
How can I get optparse's OptionParser to ignore invalid options?