Skip to content

Commit

Permalink
Fix help and version output in CLI (#301)
Browse files Browse the repository at this point in the history
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`.

Resolve BE-1387
  • Loading branch information
nickpetrovic authored Jun 17, 2024
1 parent f30e7bd commit 123a442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "beta9"
version = "0.1.35"
version = "0.1.37"
description = ""
authors = ["beam.cloud <[email protected]>"]
packages = [
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/beta9/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 123a442

Please sign in to comment.