# io.github.libtmux.Options.Options.setExpanded

- **Module:** io.github.libtmux.Options.Options
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Options.java#L182
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-options-options-setexpanded/

```
io.github.libtmux.Options.Options.setExpanded(name: String, format: String) -> void
```

Sets one option to what a tmux format comes to, rather than to the format itself.

<p>{@code setExpanded("status-left", "in #{session_name}")} stores {@code in base}. The
expansion happens once, when this is called; the option does not stay live.
