From 65ed0922049af1e6da92247df4793f0a2847279c Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Fri, 3 Dec 2021 00:04:36 +0100 Subject: [PATCH] cli: cli: Add option shortcuts. --- mobilizon_reshare/cli/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobilizon_reshare/cli/cli.py b/mobilizon_reshare/cli/cli.py index 5deac7e..7d7e514 100644 --- a/mobilizon_reshare/cli/cli.py +++ b/mobilizon_reshare/cli/cli.py @@ -33,18 +33,21 @@ status_name_to_enum = { } settings_file_option = click.option( + "-f", "--settings-file", type=click.Path(exists=True), help="The path for the settings file. " "Overrides the one specified in the environment variables.", ) from_date_option = click.option( + "-b", "--begin", type=click.DateTime(), expose_value=True, help="Include only events that begin after this datetime", ) to_date_option = click.option( + "-e", "--end", type=click.DateTime(), expose_value=True,