# Server.option(_:scope:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L128
- **Page:** https://libtmux.org/reference/swift/server-option(_-scope-)/

```
Server.option(_:scope:)(name: String, scope: OptionScope) -> String?
```

The value of one option, or `nil` if it is not set in that table.

Presence comes from the table listing and the value from
`show-options -v`, because neither answers both portably: the listing
quotes a value containing spaces, while `-v` reports "not set" as exit 0
with empty output on 3.2a and exit 1 on 3.7 — and reading emptiness as
absence would erase the difference between an option nobody set and one
deliberately set to "".

## Raises

- `TmuxError`
