# args_make_commands

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

```c
struct cmd_list * args_make_commands(struct args_command_state *state, int argc, char **argv, char **error)
```

## Parameters

- `state` (`struct args_command_state *`)
- `argc` (`int`)
- `argv` (`char **`)
- `error` (`char **`)

## Called by

- [`args_make_commands_now`](/en/tmux/3.7c/reference/c-function-args_make_commands_now/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L748)
- [`cmd_command_prompt_callback`](/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L216)
- [`cmd_display_panes_key`](/en/tmux/3.7c/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L282)
- [`cmd_if_shell_callback`](/en/tmux/3.7c/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-if-shell.c#L156)
- [`cmd_run_shell_timer`](/en/tmux/3.7c/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-run-shell.c#L224)

## Calls

- [`cmd_list_copy`](/en/tmux/3.7c/reference/c-function-cmd_list_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L820)
- [`cmd_log_argv`](/en/tmux/3.7c/reference/c-function-cmd_log_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L825)
- [`cmd_parse_from_string`](/en/tmux/3.7c/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L834)
- [`cmd_template_replace`](/en/tmux/3.7c/reference/c-function-cmd_template_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L827)
- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L843)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L824)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L823)

## Referenced declarations

- [`args_command_state`](/en/tmux/3.7c/reference/c-struct-args_command_state/) (struct)
- [`args_command_state.cmd`](/en/tmux/3.7c/reference/c-struct-args_command_state-cmd/) (attribute)
- [`cmd_list`](/en/tmux/3.7c/reference/c-struct-cmd_list/) (struct)
- [`CMD_PARSE_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/3.7c/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`args_command_state.cmdlist`](/en/tmux/3.7c/reference/c-struct-args_command_state-cmdlist/) (attribute)
- [`cmd_parse_result.cmdlist`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`cmd_parse_result.error`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`args_command_state.pi`](/en/tmux/3.7c/reference/c-struct-args_command_state-pi/) (attribute)
- [`cmd_parse_result.status`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-status/) (attribute)
