docs: def rem2ics():
      """Command line tool to convert from Remind to iCalendar"""
      # pylint: disable=maybe-no-member
      from argparse import ArgumentParser, FileType
      from dateutil.parser import parse
      from sys import stdin, stdout
  
      parser = ArgumentParser(description='Converter from Remind to iCalendar syntax.')
      parser.add_argument('-s', '--startdate', type=lambda s: parse(s).date(),
                          default=date.today() - timedelta(weeks=12),
                          help='Start offset for remind call (default: -12 weeks)')
      parser.add_argument('-m', '--month', type=int, default=15,
                          help='Number of month to generate calendar beginning wit startdate (default: 15)')
      parser.add_argument('-a', '--alarm', type=int, default=-10,
                          help='Trigger time for the alarm before the event in minutes (default: -10)')
      parser.add_argument('-z', '--zone',
                          help='Timezone of Remind file (default: local timezone)')
      parser.add_argument('infile', nargs='?', default=expanduser('~/.reminders'),
                          help='The Remind file to process (default: ~/.reminders)')
      parser.add_argument('outfile', nargs='?', type=FileType('w'), default=stdout,
                          help='Output iCalendar file (default: stdout)')
      args = parser.parse_args()
  
      zone = timezone(args.zone) if args.zone else None
  
      if args.infile == '-':
          remind = Remind(args.infile, zone, args.startdate, args.month, timedelta(minutes=args.alarm))
          vobject = remind.stdin_to_vobject(stdin.read())
          if vobject:
              args.outfile.write(vobject.serialize())
      else:
          remind = Remind(args.infile, zone, args.startdate, args.month, timedelta(minutes=args.alarm))
          args.outfile.write(remind.to_vobject().serialize())