1f329677f7
feat: added support for specific frames being passed via the --frames arg. This should be a single string separated by : like so "1001:1002"
8 lines
223 B
Python
8 lines
223 B
Python
import re
|
|
|
|
|
|
def frame_list(frames: str) -> list:
|
|
if not re.match(r"\d+(?::\d+)*$", frames):
|
|
raise ValueError("Input must be in the format of int:int i.e. 101:104")
|
|
return [int(x) for x in frames.split(":")]
|