# io.github.libtmux.Options.Options.get

- **Module:** io.github.libtmux.Options.Options
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Options.java#L77
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-options-options-get/

```
io.github.libtmux.Options.Options.get(name: String) -> Optional<String>
```

The value in effect at this scope, inherited from a parent scope when this one does not set it.

This is what tmux itself will act on. To ask the narrower question — whether this scope
sets the option at all — look for the name in {@link #all()}, which lists only what is set
here.

## Returns

empty only when tmux does not know the option, which it reports as an error; an option genuinely set to the empty string comes back as an empty value, not as absent. A value spanning several lines comes back whole

## Raises

- `ServerNotRunningException`: if no daemon is running
- `LibTmuxException`: if the read otherwise fails, including a name tmux finds ambiguous — option names may be abbreviated, and a prefix matching several is a question tmux declined to answer rather than an option it does not have
