# libtmux.Server.show_options

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/options.py#L993
- **Inherited from:** libtmux.options.OptionsMixin
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-server-show_options/

tmux catalog: [Options](/en/tmux/latest/catalog/options/)

```
libtmux.Server.show_options(
    self,
    global_: bool = False,
    scope: OptionScope
    | _DefaultOptionScope
    | None = DEFAULT_OPTION_SCOPE,
    include_hooks: bool | None = None,
    include_inherited: bool | None = None,
    quiet: bool | None = None,
) -> ExplodedComplexUntypedOptionsDict
```

Return all options for the target.

## Examples

```python
>>> options = server.show_options()
>>> isinstance(options, dict)
True
```

```python
>>> 'buffer-limit' in options
True
```

## Parameters

- `global_` (`bool`): Pass ``-g`` flag for global options, default False.
- `scope` (`OptionScope | _DefaultOptionScope | None`): Option scope (Server/Session/Window/Pane), defaults to object's scope.
- `include_hooks` (`bool | None`): Include hook options (``-H`` flag).
- `include_inherited` (`bool | None`): Include inherited options (``-A`` flag).
- `quiet` (`bool | None`): Suppress errors silently (``-q`` flag). (added 0.56)

## Returns

ExplodedComplexUntypedOptionsDict
    Dictionary with all options, arrays exploded and values converted.

## Raises

- [`exc.OptionError`](/en/py/stable/reference/libtmux-exc-optionerror/)
- [`exc.UnknownOption`](/en/py/stable/reference/libtmux-exc-unknownoption/)
- [`exc.InvalidOption`](/en/py/stable/reference/libtmux-exc-invalidoption/)
- [`exc.AmbiguousOption`](/en/py/stable/reference/libtmux-exc-ambiguousoption/)

## In other ports

### Read the options set on the server

- Ruby: [`LibTmux::Server#options`](/en/ruby/latest/reference/libtmux-server-options/) (method)
- TypeScript: [`server.Server.showOptions`](/en/ts/latest/reference/server-server-showoptions/) (method)
- Rust: [`server.Server.options`](/en/rs/latest/reference/server-server-options/) (method)
- Go: [`tmux.Server.Options`](/en/go/latest/reference/tmux-server-options/) (method)
- Java: [`io.github.libtmux.Server.Server.options`](/en/java/latest/reference/io-github-libtmux-server-server-options/) (method)
- C#: [`LibTmux.Server.Options`](/en/csharp/latest/reference/libtmux-server-options/) (property)
- C++: [`libtmux::Server::options`](/en/cxx/latest/reference/libtmux-server-options/) (method)
- Swift: [`Server.options(_:)`](/en/swift/latest/reference/server-options(_-)/) (method)
