# session.settings.Session.get_option

- **Module:** session.settings.Session
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/session/settings.rs#L24
- **Page:** https://libtmux.org/reference/rs/session-settings-session-get_option/

```
session.settings.Session.get_option(self, name: &str) -> Result<Option<TmuxText>, Error>
```

Read one option's exact stored value.

A user option, whose name begins with `@`, exists only while it is
set, so an unset one reports `None`. A built-in option always exists,
so an unset one also reports `None`. An unrecognized built-in name is
an error.

# Errors

Returns an error when tmux does not recognize the option name.
