@@ -219,6 +219,12 @@ def str_to_int_or_none(value: str) -> Optional[int]:
219219 default = 1.0 ,
220220 help = "Playback rate of the video slides, see PySide6 docs for details." ,
221221)
222+ @click .option (
223+ "--next-terminates-loop" ,
224+ "next_terminates_loop" ,
225+ is_flag = True ,
226+ help = "If set, pressing next will turn any looping slide into a play slide." ,
227+ )
222228@click .help_option ("-h" , "--help" )
223229@verbosity_option
224230def present (
@@ -234,8 +240,9 @@ def present(
234240 start_at : Tuple [Optional [int ], Optional [int ], Optional [int ]],
235241 start_at_scene_number : int ,
236242 start_at_slide_number : int ,
237- screen_number : Optional [int ] = None ,
238- playback_rate : float = 1.0 ,
243+ screen_number : Optional [int ],
244+ playback_rate : float ,
245+ next_terminates_loop : bool ,
239246) -> None :
240247 """
241248 Present SCENE(s), one at a time, in order.
@@ -296,6 +303,7 @@ def present(
296303 slide_index = start_at_slide_number ,
297304 screen = screen ,
298305 playback_rate = playback_rate ,
306+ next_terminates_loop = next_terminates_loop ,
299307 )
300308
301309 player .show ()
0 commit comments