Document the export option
This commit is contained in:
parent
d1297335bb
commit
101c70fc8b
4
cli.py
4
cli.py
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user