# LibTmux.SetOptionRequest.ToCommand

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

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

Returns an option request as one tmux command.

This takes the options handle rather than a server, because which
scope flags and target tmux receives follow from the handle the caller
reached for: a window's options and a server's are the same request
spelled differently.

## Parameters

- `options` (TmuxOptions): The options handle whose scope the option is set in.

## Returns

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

## Raises

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