parseSection
fn
string[] parseSection(string name, string source)Parses sections matching a name from the doc string.
Extracts sections like "Usage:" or "Options:" from the documentation.
Parameters
name | The section name to find (e.g., "usage:"). |
source | The documentation string to search. |
Returns
An array of matching section strings.