# Libtmux.Operations.capture_options

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1152
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-capture_options/

```
val capture_options :
  ?include_inherited:bool -> Options.scope -> Options.t Command.t
```

Acquire one bounded option table, excluding hooks. The default includes only local entries. Inherited table enumeration includes built-ins; inherited user options require `read_option` with their explicit name. Built-in descriptors cover every supported release from tmux 3.3a through 3.8; other versions return [`Error.Unsupported`](/en/ocaml/latest/reference/libtmux-error-t-unsupported/).

## Parameters

- `include_inherited?` (`bool`)
- `arg1` (`Options.scope`)
