diff --git a/huecli/__main__.py b/huecli/__main__.py index b7e42d2..af76ef7 100644 --- a/huecli/__main__.py +++ b/huecli/__main__.py @@ -107,10 +107,10 @@ app = typer.Typer() @app.command() def set_color( id: Annotated[ - LightID, typer.Option(help="ID of light.", autocompletion=complete_id) + LightID, typer.Argument(help="ID of light.", autocompletion=complete_id) ], color: Annotated[ - str, typer.Option(help="Color to set", autocompletion=complete_color) + str, typer.Argument(help="Color to set", autocompletion=complete_color) ], ): """ @@ -136,10 +136,10 @@ def set_color( @app.command() def set_state( id: Annotated[ - LightID, typer.Option(help="ID of light.", autocompletion=complete_id) + LightID, typer.Argument(help="ID of light.", autocompletion=complete_id) ], state: Annotated[ - LightState, typer.Option(help="State of light.", autocompletion=complete_state) + LightState, typer.Argument(help="State of light.", autocompletion=complete_state) ]): """ Set the state of ID to STATE @@ -153,7 +153,7 @@ def set_state( @app.command() def set_brightness( id: Annotated[ - LightID, typer.Option(help="ID of light.", autocompletion=complete_id) + LightID, typer.Argument(help="ID of light.", autocompletion=complete_id) ], brightness: int): """