# libtmux.exc.InvalidOption

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** exception
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/exc.py#L339
- **Bases:** [`OptionError`](/en/py/stable/reference/libtmux-exc-optionerror/)
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-exc-invalidoption/

Option invalid to tmux.

## Inherited members

- [`__init__`](/en/py/stable/reference/libtmux-exc-invalidoption-__init__/) (method), inherited from `libtmux.exc.LibTmuxException`
- [`__str__`](/en/py/stable/reference/libtmux-exc-invalidoption-__str__/) (method), inherited from `libtmux.exc.LibTmuxException`: Render with optional ``"<subcommand>: …"`` prefix.
