From 657fa84ea367069be4b6768cf796e3c31b99d0e7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 4 Jun 2025 16:26:27 +0100 Subject: [PATCH] wrap scene switch annotations with Annotated --- obsws_cli/scene.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obsws_cli/scene.py b/obsws_cli/scene.py index 8fa5eb5..e426f0b 100644 --- a/obsws_cli/scene.py +++ b/obsws_cli/scene.py @@ -20,7 +20,7 @@ def main(): @app.command('list | ls') -def list(ctx: typer.Context): +def list_(ctx: typer.Context): """List all scenes.""" resp = ctx.obj.get_scene_list() scenes = ( @@ -64,7 +64,7 @@ def current( @app.command('switch | set') def switch( ctx: typer.Context, - scene_name: str, + scene_name: Annotated[str, typer.Argument(help='Name of the scene to switch to')], preview: Annotated[ bool, typer.Option(help='Switch to the preview scene instead of the program scene'),