code: def main() -> None:
      
      logging.basicConfig()
      log.setLevel(logging.DEBUG)
      parser = argparse.ArgumentParser(
          description="Send an e-mail from the command line.")
      parser.add_argument("sender", action="store",
                          help="Sender's e-mail address")
      parser.add_argument("host", action="store",
                          help="SMTP server hostname")
      parser.add_argument("user", action="store",
                          help="SMTP username")
      parser.add_argument("password", action="store",
                          help="SMTP password")
      parser.add_argument("recipient", action="append",
                          help="Recipient e-mail address(es)")
      parser.add_argument("subject", action="store",
                          help="Message subject")
      parser.add_argument("body", action="store",
                          help="Message body")
      parser.add_argument("--attach", nargs="*",
                          help="Filename(s) to attach")
      parser.add_argument("--tls", action="store_false",
                          help="Use TLS connection security")
      parser.add_argument("--verbose", action="store_true",
                          help="Be verbose")
      parser.add_argument("-h --help", action="help",
                          help="Prints this help")
      args = parser.parse_args()
      (result, msg) = send_email(
          from_addr=args.sender,
          to=args.recipient,
          subject=args.subject,
          body=args.body,
          host=args.host,
          user=args.user,
          password=args.password,
          use_tls=args.tls,
          attachment_filenames=args.attach,
          verbose=args.verbose,
      )
      if result:
          log.info("Success")
      else:
          log.info("Failure")
          # log.error(msg)
      sys.exit(0 if result else 1)
docs: Command-line processor. See ``--help`` for details.