🎨 format click.options

This commit is contained in:
Laureηt 2023-05-25 19:58:11 +02:00
parent cc32371702
commit 35b987dd14
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -14,12 +14,44 @@ logger = logging.getLogger("nio-llm.main")
@click.command() @click.command()
@click.option("--homeserver", "-h", help="The homeserver to connect to.", required=True) @click.option(
@click.option("--device-id", "-d", help="The device ID to use.", required=True) "--homeserver",
@click.option("--username", "-u", help="The username to log in as.", required=True) "-h",
@click.option("--password", "-p", help="The password to log in with.", required=True) help="The homeserver to connect to.",
@click.option("--room", "-r", help="The room to join.", required=True) default="https://matrix.org",
@click.option("--preprompt", "-t", help="The preprompt to use.", required=True) show_default=True,
)
@click.option(
"--username",
"-u",
help="The username to log in as.",
required=True,
)
@click.option(
"--password",
"-p",
help="The password to log in with.",
required=True,
)
@click.option(
"--room",
"-r",
help="The room to join.",
required=True,
)
@click.option(
"--device-id",
"-d",
help="The device ID to use.",
default="nio-llm",
show_default=True,
)
@click.option(
"--preprompt",
"-t",
help="The preprompt to use.",
required=True,
)
def main( def main(
*, *,
room: str, room: str,