cli: cli: Add option shortcuts.

This commit is contained in:
Giacomo Leidi 2021-12-03 00:04:36 +01:00
parent 6f8f96d5b6
commit 65ed092204
1 changed files with 3 additions and 0 deletions

View File

@ -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,