From 35b987dd14ca45f72f183252f66ae16e96688c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 25 May 2023 19:58:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20format=20click.options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nio_llm/main.py | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/nio_llm/main.py b/nio_llm/main.py index 01cb154..c5cb605 100644 --- a/nio_llm/main.py +++ b/nio_llm/main.py @@ -14,12 +14,44 @@ logger = logging.getLogger("nio-llm.main") @click.command() -@click.option("--homeserver", "-h", help="The homeserver to connect to.", required=True) -@click.option("--device-id", "-d", help="The device ID to use.", required=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("--preprompt", "-t", help="The preprompt to use.", required=True) +@click.option( + "--homeserver", + "-h", + help="The homeserver to connect to.", + default="https://matrix.org", + 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( *, room: str,