X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a4032dce645b83e1faccc7274864869ddfe279fc..a538ab76636bbe71b7fbfeaf56fd8e61805df38f:/src/blackd/__init__.py diff --git a/src/blackd/__init__.py b/src/blackd/__init__.py index ba4750b..d331ad0 100644 --- a/src/blackd/__init__.py +++ b/src/blackd/__init__.py @@ -59,9 +59,15 @@ class InvalidVariantHeader(Exception): @click.command(context_settings={"help_option_names": ["-h", "--help"]}) @click.option( - "--bind-host", type=str, help="Address to bind the server to.", default="localhost" + "--bind-host", + type=str, + help="Address to bind the server to.", + default="localhost", + show_default=True, +) +@click.option( + "--bind-port", type=int, help="Port to listen on", default=45484, show_default=True ) -@click.option("--bind-port", type=int, help="Port to listen on", default=45484) @click.version_option(version=black.__version__) def main(bind_host: str, bind_port: int) -> None: logging.basicConfig(level=logging.INFO)