# LibTmux.GetOptionRequest.ToCommand

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Requests/GetOptionRequest.cs#L48
- **Page:** https://libtmux.org/en/csharp/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`](https://learn.microsoft.com/dotnet/api/system.argumentnullexception): <paramref name="options" /> is null.
