def cmdline(argv=sys.argv[<NUM_LIT:1>:]):
parser = ArgumentParser(<EOL>description='<STR_LIT>')<EOL>parser.add_argument(<EOL>'<STR_LIT>', help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', metavar='<STR_LIT>', nargs='<STR_LIT:+>',<EOL>help='<STR_LIT>')<EOL>options = parser.parse_args(argv)<EOL>factory = StopWordFactory()<EOL>language = options.language<EOL>stop_words = factory.get_stop_words(language, fail_safe=True)<EOL>for filename in options.sources:<EOL><INDENT>stop_words += StopWord(language, factory.read_collection(filename))<EOL><DEDENT>filename = factory.get_collection_filename(stop_words.language)<EOL>factory.write_collection(filename, stop_words.collection)<EOL>
Script for merging different collections of stop words.