def find_option(command, name):
    # TODO: use all_options
    if command in COMMAND_OPTIONS:
        if name == 'help':
            return OPTION_HELP
        for opt in COMMAND_OPTIONS[command]:
            if name in [opt.short_name, opt.long_name]:
                return opt
    return None
Helper method to find command option by its name.
dataset/ETHPy150Open j-bennet/wharfee/wharfee/options.py/find_option