# cmd_show_options_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L77
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-show-options-c-cmd_show_options_exec/

tmux command: [`show-hooks`](/en/tmux/3.7c/manual/show-hooks/)

tmux command: [`show-options`](/en/tmux/3.7c/manual/show-options/)

tmux command: [`show-window-options`](/en/tmux/3.7c/manual/show-window-options/)

```c
static enum cmd_retval cmd_show_options_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_count`](/en/tmux/3.7c/reference/c-function-args_count/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L88)
- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L92)
- [`cmd_get_args`](/en/tmux/3.7c/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L79)
- [`cmd_show_options_all`](/en/tmux/3.7c/reference/c-function-cmd-show-options-c-cmd_show_options_all/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L98)
- [`cmd_show_options_print`](/en/tmux/3.7c/reference/c-function-cmd-show-options-c-cmd_show_options_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L128)
- [`cmdq_error`](/en/tmux/3.7c/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L94)
- [`cmdq_get_target`](/en/tmux/3.7c/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L80)
- [`format_single_from_target`](/en/tmux/3.7c/reference/c-function-format_single_from_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L100)
- [`options_get`](/en/tmux/3.7c/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L123)
- [`options_get_only`](/en/tmux/3.7c/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L121)
- [`options_match`](/en/tmux/3.7c/reference/c-function-options_match/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L102)
- [`options_scope_from_flags`](/en/tmux/3.7c/reference/c-function-options_scope_from_flags/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L89)
- [`options_scope_from_name`](/en/tmux/3.7c/reference/c-function-options_scope_from_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L112)

## Other function references

- [`args_string`](/en/tmux/3.7c/reference/c-function-args_string/) (function)
- [`cmd_get_entry`](/en/tmux/3.7c/reference/c-function-cmd_get_entry/) (function)

## Referenced by

- [`cmd_show_hooks_entry`](/en/tmux/3.7c/reference/c-variable-cmd_show_hooks_entry/) (attribute)
- [`cmd_show_options_entry`](/en/tmux/3.7c/reference/c-variable-cmd_show_options_entry/) (attribute)
- [`cmd_show_window_options_entry`](/en/tmux/3.7c/reference/c-variable-cmd_show_window_options_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`CMD_RETURN_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.7c/reference/c-enum-cmd_retval/) (enum)
- [`cmd_show_window_options_entry`](/en/tmux/3.7c/reference/c-variable-cmd_show_window_options_entry/) (attribute)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`options_entry.name`](/en/tmux/3.7c/reference/c-struct-options_entry-name/) (attribute)
- [`OPTIONS_TABLE_NONE`](/en/tmux/3.7c/reference/c-define-tmux-h-options_table_none/) (constant)
- [`options.parent`](/en/tmux/3.7c/reference/c-struct-options-parent/) (attribute)
