mirror of
https://github.com/Laurent2916/nio-llm.git
synced 2024-11-21 13:48:48 +00:00
🎨 format click.options
This commit is contained in:
parent
cc32371702
commit
35b987dd14
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue