From dea194c523060318f5ebc126ee9ec52d5a5991aa Mon Sep 17 00:00:00 2001 From: Nick Petrovic <4001122+nickpetrovic@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:17:07 -0400 Subject: [PATCH] Fix usage and version output with cli When using pyapp to build a binary, the --help and --version options output `Usage: python -m beam [OPTIONS] COMMAND [ARGS]... ` and `python -m beam, version 0.2.23` respectively. This fixes that so the `python -m beam` portion is just `beam`. --- sdk/pyproject.toml | 2 +- sdk/src/beta9/cli/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/pyproject.toml b/sdk/pyproject.toml index e51de3c2d..ff778f0d9 100644 --- a/sdk/pyproject.toml +++ b/sdk/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "beta9" -version = "0.1.35" +version = "0.1.37" description = "" authors = ["beam.cloud "] packages = [ diff --git a/sdk/src/beta9/cli/main.py b/sdk/src/beta9/cli/main.py index 82fae540f..867eaf189 100644 --- a/sdk/src/beta9/cli/main.py +++ b/sdk/src/beta9/cli/main.py @@ -38,8 +38,8 @@ def __init__( context_settings=context_settings, ) - def __call__(self, *args: Any, **kwargs: Any) -> None: - self.common_group.main(*args, **kwargs) + def __call__(self) -> None: + self.common_group.main(prog_name=self.settings.name.lower()) def register(self, module: ModuleType) -> None: if hasattr(module, "common"):