Update help

This commit is contained in:
Antonio J. Delgado 2024-08-03 15:13:50 +03:00
parent 9e734706f7
commit f3c2d0acf6
4 changed files with 11 additions and 6 deletions

View file

@ -37,9 +37,9 @@ Customize the templates (if you know HTML, CSS and Jinja2) and run the command.
Mastodon token with read access.
-w, --wait INTEGER Seconds to wait between requests to avoid
rate limits.
-r, --recipient TEXT Recipient email to get the posts.
-r, --recipient TEXT Recipient email to get the posts. This can be a Jinja2 template.
[required]
-S, --sender TEXT Sender email thant send the posts.
-S, --sender TEXT Sender email thant send the posts. This can be a Jinja2 template.
-f, --sent-items-file TEXT File to store the IDs of post already sent
by email.
-m, --mail-server TEXT SMTP Mail server to send emails.

View file

@ -283,12 +283,17 @@ class MastodonEmailBridge:
@click.option('--limit', '-L', default=0, help='Mastodon token with read access.')
@click.option('--limit-per-request', '-R', default=40, help='Mastodon token with read access.')
@click.option('--wait', '-w', default=60, help='Seconds to wait between requests to avoid rate limits.')
@click.option('--recipient', '-r', required=True, help='Recipient email to get the posts.')
@click.option(
'--recipient',
'-r',
required=True,
help='Recipient email to get the posts. This can be a Jinja2 template.'
)
@click.option(
'--sender',
'-S',
default='mastodon_email_bridge@example.org',
help='Sender email thant send the posts.'
help='Sender email thant send the posts. This can be a Jinja2 template.'
)
@click.option(
'--sent-items-file',

View file

@ -7,7 +7,7 @@ Homepage = "https://codeberg.org/adelgado/mastodon_email_bridge"
[project]
name = "mastodon_email_bridge"
version = "0.0.5"
version = "0.0.6"
description = "Redirect your Mastodon Home timeline to your email"
readme = "README.md"
authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }]

View file

@ -1,6 +1,6 @@
[metadata]
name = mastodon_email_bridge
version = 0.0.5
version = 0.0.6
[options]
packages = mastodon_email_bridge