# libtmux.common._format_arg

- **Module:** libtmux.common
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/d2a146c9a045437b92013d65943b7ac70013fa24/src/libtmux/common.py#L282
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-common-_format_arg/

```
libtmux.common._format_arg(value: str | Format) -> str
```

Render a name or title: a ``str`` stays literal, a :class:`Format` expands.

```python
>>> _format_arg("a#b")
'a#{a:35}b'
>>> _format_arg(Format("#{session_name}"))
'#{session_name}'
```

## Parameters

- `value` (`str | Format`)
