# LibTmux.GetOptionRequest.ToCommand

- **Module:** LibTmux.GetOptionRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/GetOptionRequest.cs#L48
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-getoptionrequest-tocommand/

```
LibTmux.GetOptionRequest.ToCommand(options: TmuxOptions) -> TmuxCommand
```

Returns a named option read as one tmux command.

A chain returns one combined output stream, so several reads batched
together arrive undelimited. Reach for this to read something beside
the changes a chain makes; reach for the handle's own accessor when
what you want is a parsed value.

## Parameters

- `options` (TmuxOptions): The options handle whose scope is read.

## Returns

The command, ready to add to a <see cref="TmuxChain" />.

## Raises

- `ArgumentNullException`: <paramref name="options" /> is null.
