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

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt#L26
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-options-get/

```
public suspend fun get(name: String): String?

public suspend fun <T : Any> get(key: OptionKey<T>): T?
```

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

## Parameters

- `name` (`String`) (for `get(name)`)
- `key` (`OptionKey<T>`) (for `get(key)`)

## Returns

empty only when tmux does not know the option (for `get(name)`)
