def ics2task():
from argparse import ArgumentParser, FileType<EOL>from sys import stdin<EOL>parser = ArgumentParser(description='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', nargs='<STR_LIT:?>', type=FileType('<STR_LIT:r>'), default=stdin,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', nargs='<STR_LIT:?>', help='<STR_LIT>', default=expanduser('<STR_LIT>'))<EOL>args = parser.parse_args()<EOL>vobject = readOne(args.infile.read())<EOL>task = IcsTask(args.outdir)<EOL>for todo in vobject.vtodo_list:<EOL><INDENT>task.to_task(todo)<EOL><DEDENT>
Command line tool to convert from iCalendar to Taskwarrior