def main():  # suppress(unused-function)
    """Cause the cache to be populated with valid words."""
    description = ("""Pre-populate cache for polysquare-generic-file-linter """
                   """and spellcheck-linter.""")
    parser = argparse.ArgumentParser(description=description)
    parser.add_argument("cache_path",
                        metavar=("PATH"),
                        help="""PATH to cache""",
                        type=str)
    parser.add_argument("--technical-terms",
                        metavar=("FILE"),
                        help="""FILE containing technical terms""",
                        type=str)
    arguments = parser.parse_args(sys.argv[1:])
    valid_words_dictionary.create(arguments.cache_path)
    technical_words_dictionary.create(arguments.technical_terms,
                                      arguments.cache_path)
    return 0
def main ( ) : description = ( """Pre-populate cache for polysquare-generic-file-linter """ """and spellcheck-linter.""" ) parser = argparse . ArgumentParser ( description = description ) parser . add_argument ( "cache_path" , metavar = ( "PATH" ) , help = """PATH to cache""" , type = str ) parser . add_argument ( "--technical-terms" , metavar = ( "FILE" ) , help = """FILE containing technical terms""" , type = str ) arguments = parser . parse_args ( sys . argv [ 1 : ] ) valid_words_dictionary . create ( arguments . cache_path ) technical_words_dictionary . create ( arguments . technical_terms , arguments . cache_path ) return 0
Cause the cache to be populated with valid words.