# Path: openelex/tasks/utils.py
# def load_module(state, mod_list=[]):
#     """Dynamically load modules for states
# 
#     USAGE
# 
#        mod = load_module(state, ['datasource', 'loader'])
#        mod.datasource.Datasource()
# 
#     """
#     return __import__('openelex.us.%s' % state.lower(), fromlist=mod_list)
# 
# def split_args(raw_args, separator=','):
#     """Helper for parsing command-line options"""
#     return [func_name.strip() for func_name in raw_args.split(separator)]


import sys
import click
from collections import OrderedDict
from .utils import load_module, split_args
from __future__ import print_function




@click.command(name='validate.list', help="Show available validations for state")
@click.option('--state', required=True, help="Two-letter state-abbreviation, e.g. NY")

# Path: openelex/tasks/utils.py
# def load_module(state, mod_list=[]):
#     """Dynamically load modules for states
# 
#     USAGE
# 
#        mod = load_module(state, ['datasource', 'loader'])
#        mod.datasource.Datasource()
# 
#     """
#     return __import__('openelex.us.%s' % state.lower(), fromlist=mod_list)
# 
# def split_args(raw_args, separator=','):
#     """Helper for parsing command-line options"""
#     return [func_name.strip() for func_name in raw_args.split(separator)]


# Path: openelex/tasks/validate.py
import sys
import click
from collections import OrderedDict
from .utils import load_module, split_args

from __future__ import print_function




@click.command(name='validate.list', help="Show available validations for state")
@click.option('--state', required=True, help="Two-letter state-abbreviation, e.g. NY")

def list(state):