MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / _add_backquotes

Function _add_backquotes

docs/generate_cli_docs.py:117–126  ·  view source on GitHub ↗
(s: re.Match)

Source from the content-addressed store, hash-verified

115 references to any found options."""
116
117 def _add_backquotes(s: re.Match) -> str:
118 to_add: str = s.string[s.start() : s.end()]
119 flag = re.search(r"-+[\w-]+[^\.\=\s\/]*", to_add)
120 if flag is not None and flag.string[flag.start() : flag.end()] in refs:
121 # add cross reference
122 cross_ref = flag.string[flag.start() : flag.end()]
123 option = s.string[s.start() : s.end()]
124 return f":option:`{option} <{cross_ref}>`"
125 else:
126 return add_backquotes(s)
127
128 return _add_backquotes
129

Callers

nothing calls this directly

Calls 1

add_backquotesFunction · 0.85

Tested by

no test coverage detected