Document the export option

This commit is contained in:
moanos [he/him] 2023-01-11 19:38:47 +01:00
parent d1297335bb
commit 101c70fc8b

4
cli.py
View File

@ -59,7 +59,9 @@ def load_remote_blocklist(server: str, token: str):
def cli(): def cli():
parser = argparse.ArgumentParser(description='Deploy blocklist updates to a mastodon server') parser = argparse.ArgumentParser(description='Deploy blocklist updates to a mastodon server')
parser.add_argument('action', choices=['diff', 'deploy', 'export'], parser.add_argument('action', choices=['diff', 'deploy', 'export'],
help="Either use 'diff' to check the difference between current blocks and future blocks or 'deploy'.") help="Either use 'diff' to check the difference between current blocks and future blocks, "
"'deploy' to apply the current local blocklist or 'export' to export the remote "
"blocklist into a local file.")
parser.add_argument('-s', '--server', help="The address of the server where you want to deploy (e.g. " parser.add_argument('-s', '--server', help="The address of the server where you want to deploy (e.g. "
"mastodon.social)") "mastodon.social)")
parser.add_argument('-t', '--token', help="Authorization token") parser.add_argument('-t', '--token', help="Authorization token")