# options_get_command

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

```c
struct cmd_list * options_get_command(struct options *oo, const char *name)
```

## Parameters

- `oo` (`struct options *`)
- `name` (`const char *`)

## Called by

- [`server_client_default_command`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_default_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2334)

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L759)
- [`options_get`](/en/tmux/3.7c/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L757)

## Referenced declarations

- [`cmd_list`](/en/tmux/3.7c/reference/c-struct-cmd_list/) (struct)
- [`options_value.cmdlist`](/en/tmux/3.7c/reference/c-union-options_value-cmdlist/) (attribute)
- [`options_entry.name`](/en/tmux/3.7c/reference/c-struct-options_entry-name/) (attribute)
- [`options`](/en/tmux/3.7c/reference/c-struct-options/) (struct)
- [`OPTIONS_IS_COMMAND`](/en/tmux/3.7c/reference/c-define-options-c-options_is_command/) (constant)
- [`options_entry.value`](/en/tmux/3.7c/reference/c-struct-options_entry-value/) (attribute)
