# libtmux.Pane._show_option

- **Module:** libtmux.Pane
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/options.py#L1136
- **Page:** https://libtmux.org/reference/py/libtmux-pane-_show_option/

```
libtmux.Pane._show_option(self, option: str, global_: bool = False, g: bool = False, scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE, ignore_errors: bool | None = None, include_hooks: bool | None = None, include_inherited: bool | None = None) -> ConvertedValue | None
```

Return option value for the target.

todo: test and return True/False for on/off string

## Parameters

- `self`
- `option` (str)
- `global_` (bool)
- `g` (bool) — Use ``global_`` instead.
- `scope` (OptionScope | _DefaultOptionScope | None)
- `ignore_errors` (bool | None)
- `include_hooks` (bool | None)
- `include_inherited` (bool | None)

## Raises

- `exc.OptionError`
- `exc.UnknownOption`
- `exc.InvalidOption`
- `exc.AmbiguousOption`

## Example

```python
>>> import typing as t
>>> from libtmux.common import tmux_cmd
>>> from libtmux.constants import OptionScope
```

## Example

```python
>>> class MyServer(OptionsMixin):
...     socket_name = server.socket_name
...     def cmd(self, cmd: str, *args: object):
...         cmd_args: t.List[t.Union[str, int]] = [cmd]
...         if self.socket_name:
...             cmd_args.insert(0, f"-L{self.socket_name}")
...         cmd_args.insert(0, "-f/dev/null")
...         return tmux_cmd(*cmd_args, *args)
...
...     default_option_scope = OptionScope.Server
```

## Example

```python
>>> MyServer().cmd('new-session', '-d')
<libtmux.common.tmux_cmd object at ...>
```

## Example

```python
>>> MyServer()._show_option('exit-unattached', global_=True)
False
```
