def task2ics():
from argparse import ArgumentParser, FileType<EOL>from sys import stdout<EOL>parser = ArgumentParser(description='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', nargs='<STR_LIT:?>', help='<STR_LIT>', default=expanduser('<STR_LIT>'))<EOL>parser.add_argument('<STR_LIT>', nargs='<STR_LIT:?>', type=FileType('<STR_LIT:w>'), default=stdout,<EOL>help='<STR_LIT>')<EOL>args = parser.parse_args()<EOL>task = IcsTask(args.indir)<EOL>args.outfile.write(task.to_vobject().serialize())<EOL>
Command line tool to convert from Taskwarrior to iCalendar