# options_set_command

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

```c
struct options_entry * options_set_command(struct options *oo, const char *name, struct cmd_list *value)
```

## Parameters

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

## Called by

- [`options_from_string`](/en/tmux/latest/reference/c-function-options_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1171)

## Calls

- [`cmd_list_free`](/en/tmux/latest/reference/c-function-cmd_list_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L845)
- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L833)
- [`options_default`](/en/tmux/latest/reference/c-function-options_default/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L837)
- [`options_get_only`](/en/tmux/latest/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L835)

## Other function references

- [`options_parent_table_entry`](/en/tmux/latest/reference/c-function-options-c-options_parent_table_entry/) (function)

## Referenced declarations

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