# LibTmux.Internal.OptionParser.ParseSparse

- **Module:** LibTmux.Internal.OptionParser
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Internal/OptionParser.cs#L96
- **Page:** https://libtmux.org/reference/dotnet/libtmux-internal-optionparser-parsesparse/

```
LibTmux.Internal.OptionParser.ParseSparse(rows: IReadOnlyList<string>) -> IReadOnlyList<TmuxOption>
```

Reads lines whose options are arrays even when tmux omits the index.

Hooks are always arrays, and a hook with one entry prints without the
<c>[0]</c> that a second entry would give it. Reading those lines as
arrays keeps a hook the same shape however many entries it has.

## Parameters

- `rows` (IReadOnlyList<string>) — The output lines.

## Returns

One option per non-empty line, each carrying an index.
