enable no_args_is_help for all typers subclassing AliasGroup

This includes the root typer

patch bump
This commit is contained in:
2025-04-21 20:19:21 +01:00
parent d945a6fa40
commit 023fdf708b
4 changed files with 9 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ from pydantic import ConfigDict
from pydantic_settings import BaseSettings
from . import group, input, record, scene, scenecollection, sceneitem, stream
from .alias import AliasGroup
class Settings(BaseSettings):
@@ -29,7 +30,7 @@ class Settings(BaseSettings):
TIMEOUT: int = 5 # Timeout for requests in seconds
app = typer.Typer()
app = typer.Typer(cls=AliasGroup)
app.add_typer(scene.app, name='scene')
app.add_typer(sceneitem.app, name='scene-item')
app.add_typer(group.app, name='group')