def check_option(option, script_name, map_option2action):
    if option in map_option2action:
        ok_(option in map_option2action,
            'option %s:%s unknown')
        ok_(map_option2action[option] == "ok",
            'option %s:%s wrong: action="%s"' %
            (script_name, option, map_option2action[option]))
import script and get command line options.
dataset/ETHPy150Open CGATOxford/cgat/tests/test_commandline.py/check_option