# libtmux.Session:list_options

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/entity.lua#L399
- **Inherited from:** libtmux.Configurable
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-session-list_options/

```
list_options: fun(
  self: libtmux.Configurable<libtmux.SnapshotSession>,
  options?: libtmux.SettingListOptions,
):libtmux.Request<libtmux.OptionRecord[]>
```

## Parameters

- `options` (`libtmux.SettingListOptions?`)

## tmux command

The tmux commands behind `list_options`.

- [`show-options`](/en/tmux/latest/manual/show-options/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_options_entry`](/en/tmux/latest/reference/c-variable-cmd_show_options_entry/) (attribute)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function)
