From 1965489f511ad91ad664030c81ac28acefb4a4e5 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 7 Jan 2019 09:50:59 +0200 Subject: [PATCH] Fix message when building plugin --- maubot/cli/commands/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot/cli/commands/build.py b/maubot/cli/commands/build.py index 5e67b0b..3ab154e 100644 --- a/maubot/cli/commands/build.py +++ b/maubot/cli/commands/build.py @@ -117,7 +117,7 @@ def upload_plugin(output: Union[str, IO], server: str) -> None: @click.argument("path", default=os.getcwd()) @click.option("-o", "--output", help="Path to output built plugin to", type=PathValidator.click_type) -@click.option("-u", "--upload", help="Upload plugin to server after building", is_flag=True, +@click.option("-u", "--upload", help="Upload plugin to server after building", is_flag=True, default=False) @click.option("-s", "--server", help="Server to upload built plugin to") def build(path: str, output: str, upload: bool, server: str) -> None: @@ -133,7 +133,7 @@ def build(path: str, output: str, upload: bool, server: str) -> None: os.chdir(path) write_plugin(meta, output) if isinstance(output, str): - print(f"{Fore.GREEN}Plugin built to {Fore.CYAN}{path}{Fore.GREEN}.{Fore.RESET}") + print(f"{Fore.GREEN}Plugin built to {Fore.CYAN}{output}{Fore.GREEN}.{Fore.RESET}") else: output.seek(0) if upload: